Re: Managing a joystick with Euphoria on Linux - Example ?
- Posted by Leonardo Cecchi <leonardoce at interfree.it> Apr 12, 2007
- 520 views
Tom wrote: > > Is it "compatible" with GUI (eugtk) use ? > In the past I got problems in other language (PyGTK + SDL) with event > listening > and GUI main call. I don't know what problem you had but I think you can startup the Joystick subsystem of the SDL library and leave the other subsystems down. To integrate the joystick in the gtk event loop you could use a timer and, within the callback, you can call SDL_JoystickUpdate to fetch the joystick status. If you want I can send to you the example I've written: it's a simple window that show the axis status of the first joystick. Leonardo