aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/OSX/src/native/jinputjnilib.c
diff options
context:
space:
mode:
authorgregorypierce <[email protected]>2004-02-28 01:23:22 +0000
committergregorypierce <[email protected]>2004-02-28 01:23:22 +0000
commitffa982127fbc27555c671dcfd5cd822f401da53f (patch)
treee25e6595284e690df1527ee52fc7c62d762ec722 /plugins/OSX/src/native/jinputjnilib.c
parent6665e3a5f85a9ae2b32db8bfb599508cf5edd514 (diff)
Updated for better debugging output.
git-svn-id: file:///home/sven/projects/JOGL/git-svn/svn-server-sync/jinput/trunk@69 e343933a-64c8-49c5-92b1-88f2ce3e89e8
Diffstat (limited to 'plugins/OSX/src/native/jinputjnilib.c')
-rw-r--r--plugins/OSX/src/native/jinputjnilib.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/OSX/src/native/jinputjnilib.c b/plugins/OSX/src/native/jinputjnilib.c
index 26fd940..86c7347 100644
--- a/plugins/OSX/src/native/jinputjnilib.c
+++ b/plugins/OSX/src/native/jinputjnilib.c
@@ -572,11 +572,12 @@ JNIEXPORT void JNICALL Java_net_java_games_input_OSXEnvironmentPlugin_enumDevice
noMatchingDevices = ((ioReturnValue != kIOReturnSuccess) | (hidObjectIterator == NULL));
- // If search is unsuccessful, print message and hang.
+ // If search is unsuccessful, print message .
//
if (noMatchingDevices)
{
printf("No matching HID class devices found.");
+ return;
}
// IOServiceGetMatchingServices consumes a reference to the
@@ -679,9 +680,6 @@ JNIEXPORT jlong JNICALL Java_net_java_games_input_OSXEnvironmentPlugin_openDevic
(*queue)->create( queue, 0, (int)queueDepth );
printf("InputQueue created %lx with depth %d \n", (long) queue, (int)queueDepth );
- // todo - add the buttons/keys we want to receive from the queue
-
-
// start the input queue
//
(*queue)->start( queue );