From f73d0b8719fe82e2e362685ae8c8451fa48572dd Mon Sep 17 00:00:00 2001 From: endolf Date: Sat, 4 Oct 2003 12:48:51 +0000 Subject: Fix and updated error messages for issue 20 git-svn-id: file:///home/sven/projects/JOGL/git-svn/svn-server-sync/jinput/trunk@53 e343933a-64c8-49c5-92b1-88f2ce3e89e8 --- plugins/linux/src/native/joystickInterface.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'plugins/linux/src/native/joystickInterface.cpp') diff --git a/plugins/linux/src/native/joystickInterface.cpp b/plugins/linux/src/native/joystickInterface.cpp index 2bcc8bc..bfa4231 100644 --- a/plugins/linux/src/native/joystickInterface.cpp +++ b/plugins/linux/src/native/joystickInterface.cpp @@ -102,10 +102,17 @@ int jsInit() { } } + int highDeviceCountNumber = i; + int jsTempDeviceCount = 0; // Now we know for certain which devices are open, we can take notes jsDeviceList = (Device **)malloc(jsNumDevices * sizeof(Device *)); for(i=0;i