GP2X If You Would Like To Have Better Stick Handling


Radek

Certified Guru
Joined
Oct 13, 2005
Messages
871
Hi,

The link:
http://www.gp2x.de/cgi-bin/cfiles.cgi?0,0,0,0,19,1645

It's a realization in C of one of my ideas about improving handling the stock stick in software.
Basically one function (a wrapper for GPIO input) and it could be easily added to any app/game.

It has some small surprises as well. :)

(it will be a part of my 2D lib, more incoming...)

Use, experiment and give a feedback.
 
Interesting... maybe this will resolve some of the control difficulties.

For anyone too lazy to check out the source file, he implemented a sort of debouncing that makes it easier to switch directions without accidentally triggering a diagonal, etc.
 
Hmm, just as I was working on tightening up my stick code... I'll have to check this out.
 
Awesomeness! Now, if only I could find time amidst having a job and four children to program.

Seriously though, I've added this to my ever-expanding list of tools.
 
The "diagonal bias" is gone in the M2 units though. If anyone used this it should be an option as all new GP2Xs now have correct ordinal bias.
 
DaveC posted on Jul 7 2006 at 04:13 PM said:
The "diagonal bias" is gone in the M2 units though. If anyone used this it should be an option as all new GP2Xs now have correct ordinal bias.

It's handling more than just a diagonal issue in GP2x "MKI". It can reduce accidental registering of directions what are hard to no do given unrestrected movement of stock's stick bar.

Try joytest up and move stick to UP then try move to LEFT or RIGHT from that UP position. Chances are you will get an accidental upper diagonal. And it can ruin some games.... try Prince Of Persia in Outcast to see.

Therefore it has some remapping capabilty built in too. It can use buttons at right side of GP2x as a dpad (including computing diagonals) and stick as A/B/Y/X.

There is also an option to utilise side buttons as upper diagonals.

Well there is also an option to...

It's easy to implement and it can benefits "MKII" units as well. Seeing that many of apps/games don't have even your bias schemes implemented I had to do it myself. :)
It just cut and paste in your code solution and it can be both tweaked and turned off easily.

Of course there is no magic thought I tried hard. This algorithm is best compromise as I was experimenting with over 30 parameters monsters as well. But there is only as much what can be done software wise.
It's an improvement but there is no worry about... ;)
 
Last edited by a moderator:
Back
Top