OpenGLUT Documentation
Introduction | Documentation | Examples | Proposals | Authors | Copying | Todo | Bugs | Links

Input State
[OpenGLUT API Reference]


Functions

int glutDeviceGet (GLenum eWhat)
int glutGetModifiers (void)
void glutIgnoreKeyRepeat (int ignore)
void glutSetKeyRepeat (int repeatMode)

Function Documentation

int glutDeviceGet ( GLenum eWhat )

Query input device state.

Parameters:
eWhat Enumerated parameter ID.
Retrieve system-specific information about attached devices. Supported device queries are:

Todo:
Keyboards assumed to exist.

Mouse assumed to exist on UNIX/X11.

Mice assumed to have three buttons on UNIX/X11.

Joystick query limited to one joystick

Consider moving to a table-based approach rather than a switch(), letting us move to modular functions.

Bug:
GLUT_DEVICE_KEY_REPEAT returns the key repeat mode, but the comment says it returns the rate. GLUT_DEVICE_KEY_REPEAT should probably return ogState.KeyRepeat.

See also:
glutSetOption(), glutGet(), glutGetModifiers(), glutLayerGet()

int glutGetModifiers ( void )

Query the Alt, Shift and Ctrl keys.

Return the logical OR combination of the following symbolic bitmasks:

Todo:
Complains if not invoked by a client callback.

Does not differentiate between the left and right forms of the modifiers.

See also:
glutSetOption(), glutGet(), glutDeviceGet(), glutLayerGet()

void glutIgnoreKeyRepeat ( int ignore )

Set autorepeat status.

Parameters:
ignore Whether to ignore autorepeated keys.
If ignore is non-zero, then auto-repeat is disabled for keyboard callbacks for the current window.

See also:
glutSetKeyRepeat()

void glutSetKeyRepeat ( int repeatMode )

Sets autorepeat behavior for all OpenGLUT windows.

Parameters:
repeatMode On, Off or Default.
glutSetKeyRepeat() is similar to glutIgnoreKeyRepeat() but sets the behavior for OpenGLUT in general, rather than for a particular window. The options for repeatMode are:

See also:
glutIgnoreKeyRepeat()




OpenGLUT Development @ Sourceforge
Homepage | Summary | Files | CVS | Forums | Lists | Bugs | RFE

Generated on Sat Feb 5 01:47:28 2005 for OpenGLUT by doxygen 1.3.9.1
The OpenGLUT project is hosted by sourceforge.net.

AltStyle によって変換されたページ (->オリジナル) /