summaryrefslogtreecommitdiffstats
path: root/src/glut/directfb/state.c
diff options
context:
space:
mode:
authorClaudio Ciccani <[email protected]>2006-08-04 10:49:43 +0000
committerClaudio Ciccani <[email protected]>2006-08-04 10:49:43 +0000
commit3ab2dd9f912403cf6bd174c8f5f34ae4e3af1848 (patch)
tree9ac87635384d7b6cc978500acb844839c7be8939 /src/glut/directfb/state.c
parent0a4be7036864efa6b30d78e0aac449d34b812c13 (diff)
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 c6800ffecd4..194d5bbb626 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 )
{