get stick analogue XY position using Jinput in lwjgl
Posted
by
oIrC
on Game Development
See other posts from Game Development
or by oIrC
Published on 2014-05-28T14:43:46Z
Indexed on
2014/05/28
16:01 UTC
Read the original article
Hit count: 267
i want to capture the movement of the analogue stick of the gamePad.
is there any equivalent function to this
public void mouseMoved(MouseEvent mouseEvent) {
mouseEvent.getX(); //return the X coordinate of the cursor inside a component
mouseEvent.getY();//return the Y coordinate of the cursor inside a component
}
into lwjgl.input.Controllers
, i found controller.getAxisValue()
but this one doesn't work as the function above.
any help?
thanks.
© Game Development or respective owner