Yes, I am connecting the iContolPad as a joypad in bluetooth mode. What I see is that if no joypad is connected the joystick 0 name is "gpio-keys" and hat y is always -1. If I connect the iControlPad it becomes joystick 0, also with hat y value of -1.
I'd like to support multiple kinds of game pads, so my code looks similar to this:
IF GETDIGY(self.GamePadNumber) = -1 OR GETJOYBUTTON(self.GamePadNumber, self.UpButton)
self.Up = TRUE
ELSE
self.Up = FALSE
ENDIF
Because I poll both the hat and an assignable button (because the iControlPad doesn't have a hat) my code always thinks up is being pressed.
I started a thread over on the Pandora forums, but I haven't gotten any bites there:
http://boards.openpandora.org/index.php?/topic/7043-glbasic-hat-y-always-reads-1/
Thanks!
I'd like to support multiple kinds of game pads, so my code looks similar to this:
IF GETDIGY(self.GamePadNumber) = -1 OR GETJOYBUTTON(self.GamePadNumber, self.UpButton)
self.Up = TRUE
ELSE
self.Up = FALSE
ENDIF
Because I poll both the hat and an assignable button (because the iControlPad doesn't have a hat) my code always thinks up is being pressed.
I started a thread over on the Pandora forums, but I haven't gotten any bites there:
http://boards.openpandora.org/index.php?/topic/7043-glbasic-hat-y-always-reads-1/
Thanks!