Questions tagged [gamepad]

A type of game controller held in two hands

A gamepad (also called joypad or control pad), is a type of game controller held in two hands, where the fingers (especially thumbs) are used to provide input. Gamepads generally feature a set of action buttons handled with the right thumb and a direction controller handled with the left. The direction controller has traditionally been a four-way digital cross (also named a joypad, or alternatively a D-pad), but most modern controllers additionally (or as a substitute) feature an analog stick.

303 questions
0
votes
1 answer

RequestAnimationFrame execute method only once

Background information: I am trying to make an application with ElectronJS. The backend is a python webserver which starts at the same time electron starts. I will refer to the python webserver as "the backend" and ElectronJS as "the…
Dany
  • 735
  • 1
  • 8
  • 27
0
votes
2 answers

Xbox One Controller Thumbstick Coordinates (in UWP app)

How can I access the coordinates of the two Xbox One thumbsticks in a UWP application? Also, how can I detect when the X, Y, A and B buttons are pressed? Edit: I have been getting an exception of type "System.InvalidOperationException" in…
Dhruv
  • 117
  • 9
0
votes
0 answers

Xbox One Controller UWP App

I have been trying to make an Xbox One controller interact with a UWP application and have looked into the Gamepad class (based on the suggestions mentioned in the comments - Controller support for Xbox one in Windows UWP). I have 2 issues: 1)…
Dhruv
  • 117
  • 9
0
votes
0 answers

How to test controller/gamepad implementation on Android emulator?

I need to implement a controller/gamepad support for my mobile game. I'm trying to make my game work on Android TV. However, I noticed, there is no controller/gamepad mocking on Android TV's emulator. How can I test it and make sure everything works…
Gintas_
  • 4,940
  • 12
  • 44
  • 87
0
votes
1 answer

d-pad and joystick have the same Event-source id. want to differentiate between d-pad and joystick

i'm trying to differentiate between a joystick and a d-pad input. i always get the same Event source (16777232). it doesnt matter if i push the d-pad or the turn the joystick. i'm using a ipega gamecontroller my problem is: First: when I turn the…
Pau
  • 1
  • 3
0
votes
1 answer

How can I map the controller analog stick to the mouse

Alright, so I am trying to use the analog stick on a gamepad to move the desktop mouse cursor around. The problem is that I need to be able to get the same smoothness as Attempt 2, but without using an absolute mouse position. The cursor needs to…
Watercycle
  • 497
  • 1
  • 7
  • 12
0
votes
2 answers

Error with Python 3 in RPi

First, sorry if I have a bad English or if anything is wrong, this is my first "post". I'm trying to use a USB gamepad to turn an LED on and off with gpiozero. I have an error while trying to execute the program: import sys from gpiozero import…
Tigrejor
  • 1
  • 5
0
votes
1 answer

Moga Power Pro, HID mode, in Chrome 46 for Android

I've written a small Aurelia application that binds to gamepad state here: http://davismj.github.io/challenger/ I developed it using my Moga Power Pro in HID mode connected to my Windows 7 computer. However, it failed to detect the same gamepad when…
Matthew James Davis
  • 12,134
  • 7
  • 61
  • 90
0
votes
0 answers

navigator.getGamepads() return an array of undefineds

[Edit added 17 Sept 2015] In the latest version of Google Chrome I am calling: var arr = navigator.getGamepads(); which results in: arr = [undefined, undefined, undefined, undefined]; I have a Logitech Pro connected in a usb port on my pc. I am…
Rewind
  • 2,554
  • 3
  • 30
  • 56
0
votes
0 answers

Using gamepad with pyglet: events not recorded when window exists

I'm running into an issue with some pyglet code on Python 2.7.9 on Ubuntu 15. While I can view the output of gamepad events (button A presses) when the pyglet window is absent, these events are not handled when the window is present. import…
dliston
  • 1
  • 1
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
1 answer

Can I use multiple Gamepads with Unity3d?

I have a couple questions about Unity3d and Game Controllers on PC. In Unity3d is it possible to use a game pad as an input source? If so, which game pads are supported (e.g. Xbox)? Do I need a plugin or someone else's code? Can I use the…
Andrew Meservy
  • 103
  • 2
  • 9
0
votes
2 answers

How to inject code into an existing Apk?

I know this is possible to decompile and recompile an apk. And I saw this post : Injecting code into APK before, But what I want is not decompiling or reverse engineering. In my case I just want to make some games that uses touch events compatible…
Milad Faridnia
  • 9,113
  • 13
  • 65
  • 78
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

Psychopy IO Gamepad

I am using Builder in standalone PsychoPy 1.80.07 in Windows. I'm trying to figure out how to create a Code Component to receive responses from a Logitech F310 Gamepad. Ideally, I would like to just use the triggers. I do not get any error code when…