OpenGLUT - inputstate
Enumerated parameter ID.
Retrieves some system-specific information about attached devices. Supported device queries are:
Return non-zero if there is a joystick.
Return non-zero if there is a keyboard.
Return non-zero if there is a mouse.
Return non-zero if there is a spaceball.
Return the number of axes for the joystick.
Return the rate (in GLUT timer ticks?) at which the joystick is polled.
Return the number of buttons that the user's mouse has.
Return non-zero if OpenGLUT believes that it has successfully acquired access to the joystick.
Return non-zero if the
is set to disable key repeating.
Described as returning the key repeat rate in one place, but actually returns a key repeat mode.
Return non-zero if a dials-and-buttons box is present.
Return non-zero if a tablet is present.
Return the number of buttons on a dials-and-buttons box, if any.
Return the number of dials on a dials-and-buttons box, if any.
Return the number of buttons on a spaceball, if any.
Return the number of buttons on a tablet, if any.
Only supports querying for one joystick.
Consider moving to a table-based approach rather than a switch(), letting us move to modular functions.
Keyboards are optional, but OpenGLUT doesn't detect their absence.
Mice are optional, but OpenGLUT is only able to check for them under WIN32.
Mice can have a varying number of buttons, but OpenGLUT assumes exactly 3 on UNIX_X11.
Not all joystick queries are implemented yet.
returns the key repeat mode, but the comment says it returns the
Some things, like joystick poll rates, seem to have insufficient context. Which joystick? Which window? Maybe we assume the
and the current joystick (or the first one)?
should probably return
glutSetOption(3) glutGet(3) glutGetModifiers(3) glutLayerGet(3)
glutGet(3), glutGetModifiers(3), glutLayerGet(3), glutSetOption(3).