gamepadtest | simple demo of using the Gamepad API
kandi X-RAY | gamepadtest Summary
kandi X-RAY | gamepadtest Summary
This is a simple demo of using the Gamepad API in JavaScript. It attempts to account for differences in implementations of the unfinished spec, as well as Chrome's prefixed implementation. Written in 2013 by Ted Mielczarek ted@mielczarek.org. To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gamepadtest
gamepadtest Key Features
gamepadtest Examples and Code Snippets
Community Discussions
Trending Discussions on gamepadtest
QUESTION
I am working on a HID gamepad with 4 axis(14 Bit), 16 Buttons, 2 Analog Triggers(1 Byte) and a Hat Switch. I am currently using Axis X and Y for the left analog stick, axis Rx and Ry for right analog stick and axis Z and Rz for left and right triggers. I am able to register all buttons and analog readings(which have been tested with Gamepad tester in android and jstest-gtk in linux), but the problem is that in (Android)games the triggers are supposed to be axis 7 and axis 8 and in my case the Z and Rz are assigned axes 14 and 15. I have also tried using Acceleration(axis:11), Brake(axis:12), Rudder(axis:9) and Throttle(axis:10) but the axes 7 and 8(which are the default trigger axes) are not getting assigned.
Here is my HID Report Descriptor:-
...ANSWER
Answered 2020-Mar-04 at 17:02Here is the Report Descriptor that worked for me:-
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gamepadtest
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page