summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2000-06-27 13:39:55 +0000
committerBrian Paul <[email protected]>2000-06-27 13:39:55 +0000
commit37283bb248c4b459154ae4a2fd9389d346d41bda (patch)
tree2c89c14372f91bb5a10825df3037a121113830b6
parent86a2de4f1f620a50a1a74c07f3003be640e63b56 (diff)
another patch for win32 joysticks
-rw-r--r--src/glut/glx/glut_input.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glut/glx/glut_input.c b/src/glut/glx/glut_input.c
index 007883d6b6e..bc93d5e5151 100644
--- a/src/glut/glx/glut_input.c
+++ b/src/glut/glx/glut_input.c
@@ -266,6 +266,10 @@ __glutProcessDeviceEvents(XEvent * event)
JOYINFOEX info;
JOYCAPS joyCaps;
+ memset(&info, 0, sizeof(JOYINFOEX));
+ info.dwSize = sizeof(JOYINFOEX);
+ info.dwFlags = JOY_RETURNALL;
+
if (joyGetPosEx(JOYSTICKID1,&info) != JOYERR_NOERROR) {
__glutHasJoystick = 1;
joyGetDevCaps(JOYSTICKID1, &joyCaps, sizeof(joyCaps));