Hi
is there a Windows example to read the Space Navigator
without a need for a reference to a WINDOW, that is, I want
to run some loop to read the device and forward events to a different
program.
I managed on MacOS X using the CFRunLoop call which does not
actually create a window or GUI. Is there such an example for
Microsoft Windows?
Regards
Mark
Windows example to read the SpaceNavigator
Moderator: Moderators
Hello Jim, Nuno,
I, too, am interested in using the SpaceNavigator in my own application. I would like to read the device and make the events from the device available to a different program. I do not want to create a Window, need a reference to a Window, or run any Windows related loop. Mark mentions that he was able to do this on MacOS X. I suppose on Windows it should be possible using calls to read USB, but I have no idea how to do this. A simple, plain vanilla C or C++ example with code to poll the device would be great. Even better would be an example of how to do this from a Java application, but given the former I can handle the latter.
Thanks,
Norman
I, too, am interested in using the SpaceNavigator in my own application. I would like to read the device and make the events from the device available to a different program. I do not want to create a Window, need a reference to a Window, or run any Windows related loop. Mark mentions that he was able to do this on MacOS X. I suppose on Windows it should be possible using calls to read USB, but I have no idea how to do this. A simple, plain vanilla C or C++ example with code to poll the device would be great. Even better would be an example of how to do this from a Java application, but given the former I can handle the latter.
Thanks,
Norman
If you just don't want to see the window you can do this in JAVA:
Then the window is completely invisible and removed from the taskbar.
Code: Select all
MainFrame m = new MainFrame(new HelloUniverse(), 256,256);
m.setVisible(false);