and is provided without guarantee or warrantee expressed or
implied. This program is -not- in the public domain. */
+#ifdef __VMS
+#include <GL/vms_x_fix.h>
+#endif
+
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
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));
XButtonInfoPtr b;
XValuatorInfoPtr v;
XAxisInfoPtr a;
- int num_dev, btns, dials;
+ int num_dev = 0, btns = 0, dials = 0;
int i, j, k;
#endif /* !_WIN32 */
}
/* CENTRY */
-int APIENTRY
+int GLUTAPIENTRY
glutDeviceGet(GLenum param)
{
probeDevices();