Questions tagged [gamepad-api]

The Gamepad specification defines a low-level interface that represents gamepad devices.

The Gamepad specification defines a low-level interface that represents gamepad devices. The Web Gamepad API presents a way to access and use gamepads and other controllers for games. For more information see this: https://wiki.mozilla.org/GamepadAPI

78 questions
1
vote
1 answer

Listen for gamepad button events with xbox one controller

I'd like to listen for button press events on an xbox one controller, but seems that many solutions to this are experimental and under development. Most examples I've found showing how to receive input from a gamepad use a polling method to…
j45612
  • 362
  • 1
  • 5
  • 17
1
vote
0 answers

How to exchange AndroidTouch+Keyprocessor after 1.12 update(FlutterView deprecation)

I need this GitHub issue fixed, so I did some digging into the error myself. I am kind of stuck but here is what I've got: After the Flutter 1.12 update, the API using FlutterView is now depracted and instead the new embedding packages should be…
jaaq
  • 1,188
  • 11
  • 29
1
vote
2 answers

Extending the native GamepadAPI?

I'm trying to extend the native GamepadAPI to include custom controller code. Using TypeScript, I implemented a simple function, to dispatch a "gamepadconnected" event. // simulate gamepadconnected event function…
Marco Klein
  • 191
  • 7
1
vote
0 answers

Firefox 56+ breaks Gamepad API across multiple windows/tabs

Firefox 56+ breaks Gamepad API across multiple windows/tabs The application I am working on uses the Gamepad API to allow xbox controllers to be used to control video producing cameras. It supports multiple windows/tabs. Everything worked great, but…
Zac
  • 2,201
  • 24
  • 48
1
vote
1 answer

Gamepad API: Button events not firing

I have a bluetooth controller in which I've tested all the numbers of the buttons with this Gamepad tester: http://html5gamepad.com/, so I'm pretty sure the values of the buttons are correct. However, nothing seems to fire, the Gamepad is shown to…
Lord Goderick
  • 965
  • 2
  • 14
  • 32
1
vote
1 answer

Verify ongamepadconnected/disconnected supported by looking for the GamepadEvent Existence

So I just realized that the ongamepadconnected event returns a GamepadEvent object Is it a good idea to just check for this object when trying to see if ongamepadconnected/disconnected is supported on the user's browser? This way I, or any other…
Kitanga Nday
  • 3,517
  • 2
  • 17
  • 29
1
vote
1 answer

HTA Gamepad API (or alternatives)

I am building an game launcher app (similar to Steam Big Picture) using HTA and I'd like to be able to control this app using my X360 controller. One way to do it is to use Xpadder and emulate keyboard presses, but since MS Edge has a native support…
doomista
  • 501
  • 2
  • 10
1
vote
1 answer

Gamepad API - Different browser axis mapping

I'm using Gamepad API and, in the same computer, with chrome and firefox, I get different axis mapping, axis numbering and button mapping. Is there any way to make them use the same mapping? Or some library? Thanks
Rui d'Orey
  • 982
  • 3
  • 13
  • 31
1
vote
1 answer

Microsoft Edge does not detect gamepads

I've been trying to test the gamepad API in Microsoft edge build 10240 using their own gamepad example http://internetexplorer.github.io/Gamepad-Sample/. This demo works in both chrome and firefox. The navigator.getGamepads exists but returns an…
drowzy
  • 657
  • 6
  • 9
1
vote
0 answers

Gamepad API - Does a Gamepad Object persist after disconnect and reused on reconnect?

Summary: I want to tell the difference between two or more 'XBox 360 Controllers'. Context: I'm working on building a GamepadManager for the Gamepad API using Javascript (Typescript). The GamepadManager's main function is to support Callbacks which…
Jono Tho'ra
  • 1,476
  • 3
  • 18
  • 28
1
vote
1 answer

HTML5 Gamepad API not working

I'm trying to build an application using the HTML5 Gamepad API but my browser (Chrome 24) seems to totally ignore the gamepads. According to many articles on the web, it should work since Chrome 21 I think it's a material problem because it's not…
jmpp
  • 346
  • 1
  • 4
  • 22
1
vote
1 answer

vb.net gamepad support, partially working

I found the following class code on a forum. It works great for the gamepad (up, down, left, right) however all the code for the buttons is missing. Can anyone fill in the blanks? This works: Private Sub joystick1_Up() Handles joystick1.Up …
user736893
0
votes
0 answers

Use Windows.Gaming.Input (GameInput) in Windows Form C#

I want to Use Windows.Gaming.Input (GameInput) in Windows Form project. I found this link, But I could not add Windows.Gaming. I have created a project in Microsoft Visual Studio 2022 (.Net 5.0), Then i after created and changed it to .Net Framework…
Saeed
  • 1
  • 1
  • 1
0
votes
0 answers

Is there a hack/workaround to communicate from Firefox to a USB device without the Gamepad API?

I am developing the hard- & software for a keyboard, and I'd like to make a web-based configurator (something like the (chrome-only) Wootility for the Wooting keyboards). Support for Chromium browsers is really easy with WebUSB/HID/Serial etc., but…
lxhom
  • 650
  • 4
  • 15
0
votes
0 answers

Firefox / GeckoView Gamepad API not functional?

The Gamepad API isn't working in the official firefox app and in a GeckoView (v 107.0.xxx) on Android. To Reproduce: Open the test gamepad API site: https://luser.github.io/gamepadtest/ On chrome, it shows a connected gamepad. On firefox, it does…
alexward1230
  • 579
  • 3
  • 8
  • 25