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
0
votes
1 answer

Gamepad API not detecting Xbox controller in Chrome on Windows server 2012

I'm trying to use the gamepad API to connect to an Xbox controller in google chrome. I'm running into an issue where after plugging the controller in and pressing some buttons on the controller, navigator.GetGamepads() is not returning any gamepad…
0
votes
0 answers

Vuejs and HTML5 Gamepad API: How to render Gamepad Object?

I'm trying to list available gamepads and select a gamepad in available gamepads. When select this gamepad button pressed gamepads list will be not visible and only selected gamepad will be visible. I tried to do this with v-if:
Uğur Cibaroğlu
  • 33
  • 1
  • 1
  • 4
0
votes
2 answers

BLE and Bluetooth gamepad options for Oculus

I'm planning to build a mobile app that sends over BLE a joystick commands with HID over GATT. Does Oculus external gamepad option will be able to connect to it? or it works only with Bluetooth?? therefore BLE won't work? I would appreciate if you…
0
votes
1 answer

Getting started on custom gamepad handling

Since I find the default gamepad handling of Windows to be lacking, I'd like to write a custom interface for that purpose. Basically, I want to add a layer between the plugged in gamepads and the Windows gamecontroller management. While I'm not sure…
Kefir
  • 85
  • 1
  • 1
  • 5
0
votes
1 answer

Moga gamepad not working with A-Frame

I have a Moga Pro gamepad that I am trying to use with A-Frame. According to the A-Frame 0.5.0 docs on tracked-controls, I should be able to add something like: and I would be…
scottlittle
  • 18,866
  • 8
  • 51
  • 70
0
votes
0 answers

HTML5 Gamepad API, connection only when switching tabs

Trying to implement HTML5 gamepad api using the following code: window.addEventListener("gamepadconnected", function(e) { console.log(e.gamepad); }); I have my wireless Xbox 360 controller connected. When I load my webpage, nothing shows up in…
Carpetfizz
  • 8,707
  • 22
  • 85
  • 146
0
votes
1 answer

How many things gamepad api and hid api differ from each other

I'm curious that if I want to use some custom sensor hardware (HID compatible) to act like gamepad. And then use gamepad API to work with it with js/html. What I won't be able to do? Specifically, what could be done on HID api but cannot be with…
Thaina Yu
  • 1,372
  • 2
  • 16
  • 27
0
votes
1 answer

Arduino joystick to web gamepad

I'm using a Arduino Leonardo with a b10k pot. I want to have this pot act as a gamepad (paddle) in a HTML-game. I'm using ArduinoJoystickLibrary and mapping the analog value(0-1023) to a range of -127 to 127. Like…
J.G.Sebring
  • 5,934
  • 1
  • 31
  • 42
0
votes
1 answer

Unable to get Gamepad events on Chromium Version 44.0.2383.0

I'm trying to get my gamepad events in chromium. Everything works perfectly fine on Chrome Version 44.0.2403.130 m with this code : var gamepadList = navigator.getGamepads ? navigator.getGamepads() : (navigator.webkitGetGamepads ?…
user5209723
0
votes
2 answers

GameInput.DEVICE_ADDED not triggering at application startup

I'm posting this question because i'm having a little problem with the GameInput API in an adobe AIR desktop app. I tested the API in a test app and it worked just fine. However, when i added it to my real app (a game), it doesn't trigger anymore at…
0
votes
1 answer

SharpDX.Direct Input in Unity

I've been trying to implement DirectInput into unity using SharpDX.DirectInput dlls, but when i create a joystick, it gives me an error: SharpDXException: HRESULT: [0x80070057], Module: [General], ApiCode: [E_INVALIDARG/Invalid Arguments], Message:…
0
votes
1 answer

How to switch axes of an android gamepad?

In my case I am using an Logitech F310 in Xinput mode (it has a switch to choose between DirectInput and Xinput). I wrote an small Application, which reads the axis values of the gamepad. It turns out that the right analog stick uses the axis…
Alex N
  • 155
  • 3
  • 8
0
votes
1 answer

How to get/send data from a gamepad through HTML page

Are there any API or a tool to write and read data through an HTML page?
yildizabdullah
  • 1,895
  • 5
  • 24
  • 37
0
votes
1 answer

gamepad for node.js serialport

I would like to use my gamepad with node.js serialport - to control robots basically. I do not want to reinvent the wheel, so would it be possible to port the pygames joystick to javascript - based on Chris Williams serialport? Anyone thought about…
Thomas Deutsch
  • 2,344
  • 2
  • 27
  • 36
-1
votes
0 answers

The functionality of the joystick controls appears to be compromised subsequent to the reactivation of the Xbox joystick from its dormant state

Joystick controls are not functional after waking XBOX joystick from sleep mode Currently i am developing an UWP application for XBOX and while the app is running and kept the wireless controller idle for 15 mins then sleep mode is activated on…