Skip to main content

CVS update: /jinput/plugins/linux/src/native/net_java_games_input_LinuxJoystickDevice.c

  • From: endolf@...
  • To: cvs@...
  • Subject: CVS update: /jinput/plugins/linux/src/native/net_java_games_input_LinuxJoystickDevice.c
  • Date: 12 Aug 2007 16:02:27 -0000
  • Mailing-list: contact cvs-help@...; run by ezmlm

User: endolf  
Date: 2007-08-12 16:02:27+0000
Modified:
   jinput/plugins/linux/src/native/net_java_games_input_LinuxJoystickDevice.c

Log:
 Remove stray debug

File Changes:

Directory: /jinput/plugins/linux/src/native/
============================================

File [changed]: net_java_games_input_LinuxJoystickDevice.c
Url: 
https://jinput.dev.java.net/source/browse/jinput/plugins/linux/src/native/net_java_games_input_LinuxJoystickDevice.c?r1=1.3&r2=1.4
Delta lines:  +1 -6
-------------------
--- net_java_games_input_LinuxJoystickDevice.c  2007-08-12 15:47:51+0000      
  1.3
+++ net_java_games_input_LinuxJoystickDevice.c  2007-08-12 16:02:23+0000      
  1.4
@@ -125,21 +125,16 @@
 
 JNIEXPORT jcharArray JNICALL 
Java_net_java_games_input_LinuxJoystickDevice_nGetButtonMap(JNIEnv *env, 
jclass unused, jlong fd_address) {
        int fd = (int)fd_address;
-       int i=0;
        __u16 button_map[KEY_MAX - BTN_MISC + 1];
        if (ioctl(fd, JSIOCGBTNMAP, button_map) == -1) {
                throwIOException(env, "Failed to get button map (%d)\n", 
errno);
                return NULL;
        }
        
-       for(i=0;i<10;i++) {
-               printf("Button %d maps to %d\n", i, button_map[i]);
-       }
-       
        jcharArray button_map_array = (*env)->NewCharArray(env, (KEY_MAX - 
BTN_MISC + 1));
        if (button_map_array == NULL)
                return NULL;
-       (*env)->SetCharArrayRegion(env, button_map_array, 0, (KEY_MAX - 
BTN_MISC + 1), (jbyte *)button_map);
+       (*env)->SetCharArrayRegion(env, button_map_array, 0, (KEY_MAX - 
BTN_MISC + 1), (jchar *)button_map);
        return button_map_array;
 }
 







CVS update: /jinput/plugins/linux/src/native/net_java_games_input_LinuxJoystickDevice.c

endolf 08/12/2007
 
 
Close
loading
Please Confirm
Close