1. Managing a joystick with Euphoria on Linux - Example ?

Hi

I'd like to manage a joystick with Euphoria (+ GUI stuff) on *Linux*. 
I only found Freeglut for this on Linux, the rest seems Windows/DOS specific. 
However I did not find any example to use it for joystick especially.
Does anyone has an example for Linux please ?

Thanx
Tom

new topic     » topic index » view message » categorize

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

Hi,

You should try SDL_Wrap for Linux from the archive (the author is Mark Akita).
I've tried it now and works right even with joystick.

Leonardo

new topic     » goto parent     » topic index » view message » categorize

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

Leonardo Cecchi wrote:
> 
> Hi,
> 
> You should try SDL_Wrap for Linux from the archive (the author is Mark Akita).
> I've tried it now and works right even with joystick.
> 
> Leonardo

Thanks !
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.
Thx.
Tom

new topic     » goto parent     » topic index » view message » categorize

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

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 message » categorize

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

Leonardo Cecchi wrote:
> 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

Oh it would be great. Can you please send it to [tom at guilleminot.org] ?
Thanks a lot ! :o)
Tom

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu