Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Axis 6 and 7 buttons are not configured to implement #4

Open
gowdruNikhil opened this issue Nov 26, 2018 · 3 comments
Open

Axis 6 and 7 buttons are not configured to implement #4

gowdruNikhil opened this issue Nov 26, 2018 · 3 comments

Comments

@gowdruNikhil
Copy link

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

@SBRK
Copy link
Owner

SBRK commented Nov 27, 2018

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.

@gowdruNikhil
Copy link
Author

@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

@SBRK
Copy link
Owner

SBRK commented Dec 3, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants