diff options
author | endolf <[email protected]> | 2007-08-12 16:02:23 +0000 |
---|---|---|
committer | endolf <[email protected]> | 2007-08-12 16:02:23 +0000 |
commit | b1cb9d95371294aa6074fac10e2c5a1876403171 (patch) | |
tree | 7097aff1a4533da8bfc288e5756dd153163369c0 | |
parent | ecbcd7ca063e348529594c6964527e9c0a28f7cd (diff) |
Remove stray debug
git-svn-id: file:///home/sven/projects/JOGL/git-svn/svn-server-sync/jinput/trunk@199 e343933a-64c8-49c5-92b1-88f2ce3e89e8
-rw-r--r-- | plugins/linux/src/native/net_java_games_input_LinuxJoystickDevice.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/plugins/linux/src/native/net_java_games_input_LinuxJoystickDevice.c b/plugins/linux/src/native/net_java_games_input_LinuxJoystickDevice.c index 92da2a6..718bef3 100644 --- a/plugins/linux/src/native/net_java_games_input_LinuxJoystickDevice.c +++ b/plugins/linux/src/native/net_java_games_input_LinuxJoystickDevice.c @@ -125,21 +125,16 @@ JNIEXPORT jbyteArray JNICALL Java_net_java_games_input_LinuxJoystickDevice_nGetA 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; } |