views:

14

answers:

0

I have a class which uses SDLJava to process events from multiple joysticks.

When I put a 'main' in the class and run the file, all the joysticks are correctly detected and all events at received and processed in the class.

When I add a 'run' method (which does the same as 'main') and run the class as a thread, all joysticks are detected but only events from the last joystick are received. Moving other joysticks has no effect.

Any ideas what the problem could be?

The thread is part of a Swing application running on Linux.