summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b8b9e6d)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@988
7f0cb862-5218-0410-a997-
914c9d46530a
-#if TARGET_HOST_POSIX_X11\r
-static void fghDeinitialiseInputDevices ( void )\r
+void fghCloseInputDevices ( void )\r
{\r
if ( fgState.JoysticksInitialised )\r
fgJoystickClose( );\r
{\r
if ( fgState.JoysticksInitialised )\r
fgJoystickClose( );\r
+#if TARGET_HOST_POSIX_X11\r
+static void fghDeinitialiseInputDevices ( void )\r
+{\r
+ fghCloseInputDevices ();\r
+\r
+ fgState.JoysticksInitialised = GL_FALSE;\r
+ fgState.InputDevsInitialised = GL_FALSE;\r
+}\r
+\r
+\r
static void fghCloseDisplay ( void )\r
{\r
/*\r
static void fghCloseDisplay ( void )\r
{\r
/*\r
\r
\r
/* Platform-Specific Deinitialization Functions: */\r
\r
\r
/* Platform-Specific Deinitialization Functions: */\r
+extern void fghCloseInputDevices ( void );\r
+\r
void fghDeinitialiseInputDevices ( void )\r
{\r
#if !defined(_WIN32_WCE)\r
void fghDeinitialiseInputDevices ( void )\r
{\r
#if !defined(_WIN32_WCE)\r
- if ( fgState.JoysticksInitialised )\r
- fgJoystickClose( );\r
-\r
- if ( fgState.InputDevsInitialised )\r
- fgInputDeviceClose( );\r
+ fghCloseInputDevices ();\r
#endif /* !defined(_WIN32_WCE) */\r
fgState.JoysticksInitialised = GL_FALSE;\r
fgState.InputDevsInitialised = GL_FALSE;\r
#endif /* !defined(_WIN32_WCE) */\r
fgState.JoysticksInitialised = GL_FALSE;\r
fgState.InputDevsInitialised = GL_FALSE;\r