summaryrefslogtreecommitdiff
path: root/src/glut/directfb/state.c
diff options
context:
space:
mode:
authorClaudio Ciccani <klan@users.sourceforge.net>2006-08-04 10:49:43 +0000
committerJosé Fonseca <jfonseca@vmware.com>2011-07-11 20:03:34 +0100
commitac60237407f41e73e031b50a1eb878d0fa70adc3 (patch)
treecce1be5e2318b2c3b994aad3464d910d63e8e317 /src/glut/directfb/state.c
parent6d523092354d5200dac41b45430cc78ce1b77ce4 (diff)
downloadglut-ac60237407f41e73e031b50a1eb878d0fa70adc3.tar.gz
Moved glutDeviceGet() to events.c. Implemented glutIgnoreKeyRepeat() and glutSetKeyRepeat().
Diffstat (limited to 'src/glut/directfb/state.c')
-rw-r--r--src/glut/directfb/state.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/glut/directfb/state.c b/src/glut/directfb/state.c
index c6800ff..194d5bb 100644
--- a/src/glut/directfb/state.c
+++ b/src/glut/directfb/state.c
@@ -207,45 +207,6 @@ glutLayerGet( GLenum type )
return 0;
}
-int GLUTAPIENTRY
-glutDeviceGet( GLenum type )
-{
- switch (type) {
- case GLUT_HAS_KEYBOARD:
- return (keyboard != NULL);
- case GLUT_HAS_MOUSE:
- return (mouse != NULL);
- case GLUT_NUM_MOUSE_BUTTONS:
- if (mouse) {
- DFBInputDeviceDescription dsc;
- mouse->GetDescription( mouse, &dsc );
- return dsc.max_button+1;
- }
- break;
- case GLUT_HAS_JOYSTICK:
- return (g_game && joystick); /* only available in game mode */
- case GLUT_JOYSTICK_BUTTONS:
- if (joystick) {
- DFBInputDeviceDescription dsc;
- joystick->GetDescription( joystick, &dsc );
- return dsc.max_button+1;
- }
- break;
- case GLUT_JOYSTICK_AXES:
- if (joystick) {
- DFBInputDeviceDescription dsc;
- joystick->GetDescription( joystick, &dsc );
- return dsc.max_axis+1;
- }
- break;
- default:
- break;
- }
-
- return 0;
-}
-
-
void GLUTAPIENTRY
glutReportErrors( void )
{