diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2000-06-27 13:39:57 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2000-06-27 13:39:57 +0000 |
commit | 3222cd1397dd946cfbaf71169361d1aa74fcd70b (patch) | |
tree | 8271d890ceeedd9d22df450b0fa3f1f7feba7f66 | |
parent | 0c7d87ac2e319b30b476f8b27bed0339f1b935f0 (diff) |
another patch for win32 joysticks
-rw-r--r-- | src/glut/glx/glut_input.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glut/glx/glut_input.c b/src/glut/glx/glut_input.c index 007883d6b6..bc93d5e515 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)); |