GP2X Does Click Button Work In Sdl?


Puck2099

Certified Guru
Joined
Oct 22, 2004
Messages
422
Location
Madrid, Spain
Website
www.gp32wip.com
Hi,

I'm trying to make use of joystick's click button under SDL but it doesn't recognise it.

I think it is not a problem of my code because joystick's directions and other buttons (X, B, L, R...) are recognised without problem.

I'm using the values showed in the Wiki.
Any idea about what is wrong?

Thanks
 
You will need SDL libraries based on the code in Open2x's CVS (no older then about a week as that is when the fixes where added) to use all the buttons.

The SDL libraries released by GPH do not support the Joystick click button or the Vol Down (I think, I would have to check but it's one of the volume buttons).
 
DJWillis posted on Dec 9 2005 at 11:06 AM said:
You will need SDL libraries based on the code in Open2x's CVS (no older then about a week as that is when the fixes where added) to use all the buttons.

The SDL libraries released by GPH do not support the Joystick click button or the Vol Down (I think, I would have to check but it's one of the volume buttons).

Thanks for your answer :)

I downloaded and compiled gcc and the others arm-linux programs from Open2x's CVS, but I have been unabled to compile SDL libraries downloaded from there.

Do you know if there is a precompiled package of SDL libraries? :)

Thanks a lot
 
Last edited by a moderator:
Puck2099 posted on Dec 9 2005 at 11:14 AM said:
Do you know if there is a precompiled package of SDL libraries? :)

I have the pre-made libs on my PC, I will sort out a set and upload them when I get home.
 
Last edited by a moderator:
If you using the original GPH version of SDL, then the joystick click will be VK_TAT. The volume buttons were VK_VOL_DOWN & VK_VOL_UP last time I looked.

The wiki only applies to the community built version of SDL, which is much better anyway.
 
DJWillis posted on Dec 9 2005 at 11:18 AM said:
Puck2099 posted on Dec 9 2005 at 11:14 AM said:
Do you know if there is a precompiled package of SDL libraries? :)

I have the pre-made libs on my PC, I will sort out a set and upload them when I get home.

Oh, I will be grateful for your help :)

I'm at work so take your time :)

Thanks again
 
Last edited by a moderator:
Squidge posted on Dec 9 2005 at 11:34 AM said:
If you using the original GPH version of SDL, then the joystick click will be VK_TAT. The volume buttons were VK_VOL_DOWN & VK_VOL_UP last time I looked.

The wiki only applies to the community built version of SDL, which is much better anyway.

I'm using libraries from here.

I don't know if they are GPH version, I think they were compiled by Frodo's author.

Regards
 
Last edited by a moderator:
Puck2099 posted on Dec 9 2005 at 11:44 AM said:
I'm using libraries from here.

I don't know if they are GPH version, I think they were compiled by Frodo's author.

Regards

Snaffs libs are based on the Open2x source but they got compiled before I commited the fixes to CVS, all you really need it a new libSDL.a and your good to go :D.
 
Last edited by a moderator:
DJWillis posted on Dec 9 2005 at 11:53 AM said:
Puck2099 posted on Dec 9 2005 at 11:44 AM said:
I'm using libraries from here.

I don't know if they are GPH version, I think they were compiled by Frodo's author.

Regards

Snaffs libs are based on the Open2x source but they got compiled before I commited the fixes to CVS, all you really need it a new libSDL.a and your good to go :D.

If you could include a new SDL_mixer too (the one in that package doesn't play any sound) I will be very pleased :)

Thanks again
 
Last edited by a moderator:
DJWillis posted on Dec 9 2005 at 12:53 PM said:
Puck2099 posted on Dec 9 2005 at 11:44 AM said:
I'm using libraries from here.

I don't know if they are GPH version, I think they were compiled by Frodo's author.

Regards

Snaffs libs are based on the Open2x source but they got compiled before I commited the fixes to CVS, all you really need it a new libSDL.a and your good to go :D.
When did you commit those fixes? Could you PLEASE post some news on your site when you commit some (important) update (maybe also describing what changed)?

Thanks :D
 
Last edited by a moderator:
DJWillis posted on Dec 9 2005 at 03:18 AM said:
Puck2099 posted on Dec 9 2005 at 11:14 AM said:
Do you know if there is a precompiled package of SDL libraries? :)

I have the pre-made libs on my PC, I will sort out a set and upload them when I get home.

Those pre-compiled libs, will they be for Windows or Linux? Also, would they be used in place of the ones discussed here or would they suppliment these libs?
 
Last edited by a moderator:
Ravnos posted on Dec 9 2005 at 07:28 PM said:
DJWillis posted on Dec 9 2005 at 03:18 AM said:
Puck2099 posted on Dec 9 2005 at 11:14 AM said:
Do you know if there is a precompiled package of SDL libraries? :)

I have the pre-made libs on my PC, I will sort out a set and upload them when I get home.

Those pre-compiled libs, will they be for Windows or Linux? Also, would they be used in place of the ones discussed here or would they suppliment these libs?

They work both for Windows and Linux :)
 
Last edited by a moderator:
Puck2099 posted on Dec 9 2005 at 04:57 AM said:
Hi,

I'm trying to make use of joystick's click button under SDL but it doesn't recognise it.

I think it is not a problem of my code because joystick's directions and other buttons (X, B, L, R...) are recognised without problem.

I'm using the values showed in the Wiki.
Any idea about what is wrong?

Thanks

I haven't tried the click yet but the Volume Down isn't registering for me. I'm using the open2x stuff for std toolchain and the libs from http://gp2x.org/gp2x/libs/. I also tested that the volume down button works w/ other non-sdl apps, like the LCD timing app. I'm also using the values from the wiki.

edit: A little more detail after some debugging. I only seem to get up events for button #17 (vol down). No button down events.

~telengard
 
Last edited by a moderator:
Being quite new to doing stuff on the gp2x, I find this is all rather messy.
Several different toolchains, several different compiled sdl libs.

I think we would benefit greatly if people put their heads together and instead released one set of tools for windows and one set of tools for linux. Of course, the people that run Linux natively probably do not care as much.

Me, I was hoping to avoid installing Linux (Yeah I know. Lazy bum) So I've used the precompiled binaries, and I have had some trouble both with the SDL lib (I dont get the events for keys it seems. ) and also with the toolchains. Of course, I guess I should be able to compile the stuff using cygwin? uhh..

I've used slygamers custom build rules to make the stuff run in vs2k5, but it seems not all devkits are quite fond of that setup. (Kudos to slygamer for the config.)

At least for the libraries it would be useful with some standard version. I mean, as a noob, the information about these things are quite scarce.

Maybe it is enough with a webpage that gives links to the the standard stuff.

Or maybe I should compile it all myself and shutup? :blink: Thats might the right way, but it aint lazy!
 
Being quite new to doing stuff on the gp2x, I find this is all rather messy.
Several different toolchains, several different compiled sdl libs.

I think we would benefit greatly if people put their heads together and instead released one set of tools for windows and one set of tools for linux. Of course, the people that run Linux natively probably do not care as much.

Me, I was hoping to avoid installing Linux (Yeah I know. Lazy bum) So I've used the precompiled binaries, and I have had some trouble both with the SDL lib (I dont get the events for keys it seems. ) and also with the toolchains. Of course, I guess I should be able to compile the stuff using cygwin? uhh..

I've used slygamers custom build rules to make the stuff run in vs2k5, but it seems not all devkits are quite fond of that setup. (Kudos to slygamer for the config.)

At least for the libraries it would be useful with some standard version. I mean, as a noob, the information about these things are quite scarce.

Maybe it is enough with a webpage that gives links to the the standard stuff.

Or maybe I should compile it all myself and shutup? :blink: Thats might the right way, but it aint lazy!

I think at some point what you described will end up happing modulo special cases. It's just right now we're sorta in the infancy of the gp2x's lifetime and people are getting up to speed.

~telengard
 
Last edited by a moderator:
Back
Top