Collaboration diagram for Input State:
Functions | |
int | glutDeviceGet (GLenum eWhat) |
int | glutGetModifiers (void) |
void | glutIgnoreKeyRepeat (int ignore) |
void | glutSetKeyRepeat (int repeatMode) |
|
Allows you to get some device state/option variables.
It is an error---presently fatal---to call this function without first properly initializing OpenGLEAN via glutInit(). If the parameter to glutDeviceGet() is unknown, a return value of -1 is given. It is believed that at present a -1 return value always indicates an error, but that may not be a safe assumption forever.
Here is the call graph for this function: |
|
Returns the status of Alt, Shift, and Ctrl keys. According to which, if any, modifier keys are held, the return value is the logical OR combination of any of the following symbolic bitmasks:.
E.g., if the shift key is held, and no other modifier keys are held, this function will return GLUT_ACTIVE_SHIFT. It is a fatal error to call this routine without properly initializing OpenGLEAN via glutInit(). It should only be called while servicing an OpenGLEAN input callback (e.g., mouse or key event); if you violate this, a warning will be printed and a 0 mask will be returned. It is probably acceptable to drop the warning. The rationale for only calling withint an input callback is not clear.
|
|
Set autorepeat status.
It is a fatal error to call this function without first initializing OpenGLEAN via glutInit(), and also it is fatal to call this function without having a current window.
|
|
Sets autorepeat behavior for all OpenGLEAN windows.
It is a fatal error to call this function without first initializing OpenGLEAN via glutInit(). It is also fatal to call this function with a repeatMode value that is out of range. The former could possibly be eliminated; the latter should probably be reduced to a warning or inform.
|
Supported in part by SourceForge.net.
Generated on Fri Sep 16 20:15:34 2005 for OpenGLEAN by
doxygen 1.4.3
The OpenGLEAN project is hosted by
olib.org and
SourceForge.