glutDeviceGet

retrieves GLUT device information represented by integers.

Signature

glutDeviceGet( GLenum( info ) )-> int
glutDeviceGet( query ) -> <class 'ctypes.c_int'>
glutDeviceGet( GLenum(query) ) -> c_int

Parameters

VariablesDescription
info
Name of device information to retrieve.

Description

glutDeviceGet retrieves GLUT device information represented by integers. The info parameter determines what type of device information to return. Requesting device information for an invalid GLUT device information name returns negative one.

X Implementation Notes

The current implementation uses to X Input extension to regonize SGI's Spaceball, tablet, and dial and button box devices.

Win32 Implementation Notes

The GLUT_DEVICE_KEY_REPEAT always returns GLUT_KEY_REPEAT_ON .

See Also

glutGet glutKeyboardFunc glutMouseFunc glutSpaceballMotionFunc glutTabletMotionFunc glutTabletButtonFunc glutDialsFunc glutButtonBoxFunc glutIgnoreKeyRepeat glutSetKeyRepeat glutJoystickFunc