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

How do I add Xinput to a gamepad arduino project?

I have successfully running push buttons and analog sticks working on a board of mine through the serial connection via the Arduino IDE. How do I get that data to work with Xinput? I have my own emulation software that works in Xinput beyond that. I…
user3716507
  • 39
  • 1
  • 5
3
votes
1 answer

How to emulate a gamepad on Mac OSX

I would like to create a program that can emulate a gamepad being connected to the computer and pressing buttons/using the joystick on that virtual gamepad to control other games on OS X. However, I cannot find anywhere on how to emulate the…
user3422148
  • 59
  • 1
  • 4
3
votes
1 answer

Interpret USB joystick axis

There are a fair few questions about this already, but none answered my question. I have a Saitek P990 Dual Analog Gamepad, and want to read the joystick movements as intelligible data that I can use to control motors etc. How would I go about…
theo-brown
  • 653
  • 10
  • 27
3
votes
1 answer

Joystick + c# : Analog button

I am using Microsoft DirectX to get access to my gamepad. This is an usb gamepad like this one: I could get access to know when buttons are pressed and also the analog values of the axis... The thing is if there is a way to know when the analog…
the_moon
  • 553
  • 1
  • 7
  • 21
2
votes
1 answer

How do I emulate Xbox 360 joysticks using Vgamepad with joycons?

I've managed to map all buttons and triggers from joycons using joycon-python to an emulated Xbox 360 controller using vgamepad. However, I cannot figure out how to map the joysticks. I've tried tons of different ways. In the worst cases I get no…
Standie
  • 23
  • 4
2
votes
1 answer

Register custom Gamepad class with GamepadEvent results in Failed to convert value to 'Gamepad'

I'm trying trying build a little virtual controller as Gamepad class and register it. For now it is a copy of the Gamepad class: class MyJoystick { readonly axes: ReadonlyArray; readonly buttons: ReadonlyArray; …
bemeyer
  • 6,154
  • 4
  • 36
  • 86
2
votes
1 answer

How can I request input data from a game controller via USB HID API?

I've been using the below API to get data from my game controllers and it's worked fine up until my new controller arrived, which has more than the 32 buttons the API supports (The Windows Game Controller control panel applet doesn't even show them…
NeoTechni
  • 158
  • 2
  • 10
2
votes
1 answer

Android gamepad app to dispatchKeyEvent to another app (game)

I am developing a game controller app for a school project that displays a virtual gamepad and is aimed at controlling any game app on Android. Of course, the game app should support listening to KeyEvents. I am using Java to develop directly for…
Felipe
  • 51
  • 2
2
votes
0 answers

Logistick G29 steering wheel rpm lights control through python

I have a g29 steering wheel with force feedback. I want to control force feedback and LED lights on the wheel by python script. i used python-evdev library to control the force-feedback of the wheel. But I am unable to find any support to control…
siddharth
  • 57
  • 7
2
votes
1 answer

Dualshock 5 and Android

I'm trying to implement support for gamepads for my app, but it turns out Dualshock 5 gives me really weird values. I also tested it with an external app (Gamepad Tester). I've tried connecting with both USB-c and Bluetooth, but both connection…
Habba
  • 1,179
  • 2
  • 13
  • 32
2
votes
0 answers

Is there a limit to how rapidly python evdev can write/inject to an input device?

I have a python program that uses evdev to simulate gamepad button presses. The device used is "cloned" from an xbox usb gamepad, by using ui = evdev.UInput.from_device(...) But for some reason it seems that the presses is sometimes…
DhP
  • 306
  • 1
  • 11
2
votes
0 answers

Can't use GamepadEvent when using addEventListener

I have the following code in typescript : window.addEventListener('gamepadconnected', (e: GamepadEvent) => { console.log(e.gamepad) }); But I got the following errors : No overload matches this call. Overload 1 of 2, '(type: "abort" |…
Bobby
  • 4,372
  • 8
  • 47
  • 103
2
votes
1 answer

How can I create a fake Gamepad object?

I need to create an object that behaves in every way like the Gamepad objects found in navigator.getGamepads(), but presents specific static data rather than data about a real gamepad. How can I create such an object? >…
Sparr
  • 7,489
  • 31
  • 48
2
votes
0 answers

Simulate Python Gamepad Inputs for Controlling a Game

I am trying to control a game by using python. The specific game I am trying to control is F1 2019 (DirectX 12 version). I have been successful in controlling the game with keyboard inputs using ctypes, however I was wondering if there was any way…
Jack
  • 21
  • 1
2
votes
2 answers

ImportError: cannot import name 'InputDevice' - Evdev

I installed evdev on my Raspberry Pi 3 B+ with sudo -H pip install evdev. The installation went normally and I ran python /usr/local/lib/python2.7/dist-packages/evdev/evtest.py to see if it was working. Everything was fine. The issue is that when…
dfarhi
  • 21
  • 6
1 2
3
20 21