Hi I am working with the lwjgl controller classes, but I am unable to find the Joystick AxisEvent that tells me the exact position of the updated axis. I know I can write this:
Controller controller = Controllers.getEventSource();
int controlIndex = Controllers.getEventControlIndex();
if( Controllers.isEventAxis() ) {
controller.getAxisValue( controlIndex );
}
but this is not pure event based. The current AxisValue might already differ from the value that is present in the controller object and here I need to make shure that I use the value from when the event was thrown. Some Controllers.getEventAxisValue would be ideal, but I wasn't able to find it.
The same is for Buttons.