- Joined
- Nov 19, 2019
- Messages
- 80
In JavaScript gamepads have a "mapping" property that says if the gamepads has a specific mapping and so far they only have a "standard" value. Other gamepads may or may not be mapped correctly. A lot of generic USB gamepads and adapters return that they don't have a mapping. On Firefox especially. The source code in Cerberus X's HTML5 export ignores any gamepads that haven't been marked as "standard". This should be removed, because these gamepads still may be mapped correctly and even if they aren't we shouldn't block the player from trying them.
Info on JavaScript Gamepads: https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API/Using_the_Gamepad_API
These lines should be removed form targets/html5/modules/native/html5game.js
Info on JavaScript Gamepads: https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API/Using_the_Gamepad_API
These lines should be removed form targets/html5/modules/native/html5game.js
Code:
if (gamepad.mapping == "standard") {
Code:
} else {
console.log('Cerberus has ignored gamepad at raw port #'+gamepad.index+' with unrecognised mapping scheme \''+gamepad.mapping+'\'.');
}
Last edited: