Re: Managing a joystick with Euphoria on Linux - Example ?

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu