Android: implement fgPlatformDeinitialiseInputDevices

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1288 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
beuc 2012-05-03 07:58:00 +00:00
parent 6ba33936f9
commit c930677a27
3 changed files with 10 additions and 6 deletions

View File

@ -37,3 +37,13 @@ void fgPlatformCloseDisplay()
{ {
fghPlatformCloseDisplayEGL(); fghPlatformCloseDisplayEGL();
} }
/**
* Close joystick and serial input devices
*/
void fgPlatformDeinitialiseInputDevices ( void )
{
fghCloseInputDevices ();
fgState.JoysticksInitialised = GL_FALSE;
fgState.InputDevsInitialised = GL_FALSE;
}

View File

@ -401,8 +401,3 @@ void fgPlatformMainLoopPreliminaryWork ( void )
/* JNI entry points need to be bundled even when linking statically */ /* JNI entry points need to be bundled even when linking statically */
app_dummy(); app_dummy();
} }
void fgPlatformDeinitialiseInputDevices ( void )
{
fprintf(stderr, "fgPlatformDeinitialiseInputDevices: STUB\n");
}

View File

@ -32,6 +32,5 @@ extern void fgPlatformDisplayWindow(SFG_Window *window);
extern unsigned long fgPlatformSystemTime(void); extern unsigned long fgPlatformSystemTime(void);
extern void fgPlatformSleepForEvents(long msec); extern void fgPlatformSleepForEvents(long msec);
extern void fgPlatformMainLoopPreliminaryWork(void); extern void fgPlatformMainLoopPreliminaryWork(void);
extern void fgPlatformDeinitialiseInputDevices(void);
#endif #endif