raseyha / pifba

Automatically exported from code.google.com/p/pifba
0 stars 0 forks source link

D-pad does not work (Xbox 360 controller) #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have run jstest and it says that the axes of the D-pad are 4 and 5.
I have tried to change the fba2x.cfg from:

#Joystick axis
JA_LR=0
JA_UD=1

to:
#Joystick axis
JA_LR=4
JA_UD=5

But still, it does not work.
Do you have any ideas about that?

Thank you!

What version of the Pi's O/S?
It is a PI model b (512MB).

Please provide any additional information below. Also attach the output.log
if you can.

Original issue reported on code.google.com by felipede...@gmail.com on 8 Aug 2013 at 11:37

GoogleCodeExporter commented 8 years ago
The D-pad looks to be a HAT control not a normal joystick axis. There maybe a 
way to workaround this with the xboxdrv but currently the d-pad on the X360 
controller doesn't appear to work nicely with SDL input.

Original comment by squid...@gmail.com on 2 Sep 2013 at 3:15

GoogleCodeExporter commented 8 years ago
Think it's working. Can you try https://pifba.googlecode.com/git/test.zip

I need to test other joysticks to see if there's an impact.

Original comment by squid...@gmail.com on 1 Oct 2013 at 9:05

GoogleCodeExporter commented 8 years ago
Perfect! It works!

Thank you!

Original comment by felipede...@gmail.com on 2 Oct 2013 at 12:41

GoogleCodeExporter commented 8 years ago

Original comment by squid...@gmail.com on 5 Oct 2013 at 9:10

GoogleCodeExporter commented 8 years ago
I have a similar problem, but I use the "--dpad-as-button" xboxdrv option. Can 
you add direction support for the joystick section, just you did it for the 
keyboard? I mean the options LEFT, RIGHT, UP and DOWN.

Thx in advance!

Original comment by thorsten...@gmail.com on 16 Dec 2013 at 9:54

GoogleCodeExporter commented 8 years ago
Same as thorsten said. Is there a way to make dpad work after setting dpad as 
button via xboxdrv? 

Original comment by rkitche...@googlemail.com on 22 Jan 2014 at 8:52

GoogleCodeExporter commented 8 years ago
I'm having a related issue, I've been trying to use my dualshock3's dpad on 
pifba instead of my analog stick. Is there any way to enable dpad control 
alongside/instead of stick control for joypads? 

Thanks!

Original comment by YokaiSla...@gmail.com on 30 Jul 2014 at 9:08