Axis 6 and 7 buttons are not configured to implement
Hi i am using XBOX 360 to move robot but i need to make use of Axis 6 and Axis 7 button which are according to this link html5gamepad
please provide a support or if am not aware of it let me know how to make use of it.
thank you
I think it should already be working. use onAxisChange, it should be called with LeftTrigger and RightTrigger when using the triggers (axis 6 and 7). If it doesn't work then have a look at the layout file. I can't recall how I implemented it, so maybe add LeftTrigger and RightTrigger at index 6 and 7 of the axis array.
@SBRK am not asking about the left side joystick (LeftTrigger). please refer the link i posted (html5gamepad) and
check the below image in that number 2 button is what i required. Image Link
The number 2 in what you passed is the D-Pad, what does it have to do with the Axis ?
Just use onUp, onDown etc
https://github.com/SBRK/react-gamepad#onup