Game controllers

Started by Maykin53, October 13, 2013, 09:56:55

Previous topic - Next topic

Maykin53

Hi all, I've been trying to receive input from my Power Wave game controller using LWJGL.
I can get input using a Controllers.next() loops and retrieving the values of the axis.

The issue I have is that I'm not sure how if what I'm seeing is normal or not.

When I move the left analogue stick up and down, I'm getting an event from "Controller 1".
When I move the left analogue stick left or right, I'm getting an event from "Controller 2".
When I move the right analogue stick up and down, I'm getting an event from "Controller 3".
When I move the right analogue stick left or right, I'm getting an event from "Controller 4".
Pressing buttons on the controllers yields events from Controllers 1 to 4 (depending on the button).

Strangely, when I press in the analogue stick, I'm getting an event from "Controller 10", which is beyond the value I get back from Controllers.getControllerCount() (which is 6).

Is this normal? Can anyone point me in the direction of an example on how to retrieve input from controllers correctly?