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

Modern way to read gamepad input with C on Linux

I am interested in reading gamepad input, specifically a gamepad with the layout of a wired xbox 360 controller, with C on a linux machine. I understand that this can be done in a variety of ways, however I was wondering what is the modern method of…
2
votes
1 answer

Control vibration motors of game controller in pure Python?

I've bought a standard game controller that has vibration motors. It identifies itself as "SHANWAN Android Gamepad" but seems to be compatible to others as it works well on Linux out of the box. I found a script that enables me to read data from the…
Regis May
  • 3,070
  • 2
  • 30
  • 51
2
votes
1 answer

Sending Joystick input to program using python

I'm working with Ubuntu in vm and I want to send joystick inputs with Python script to other program. Basically the same thing as https://pythonprogramming.net/direct-input-game-python-plays-gta-v/?completed=/open-cv-basics-python-plays-gta-v/ but…
Shaked Sibony
  • 61
  • 1
  • 4
2
votes
2 answers

Gamepad API "gamepadconnected" not working

I am using the Gamepad API "gamepadconnected" function which is not working properly. However, the "gamepaddisconnected" function works for some reason. Upon connecting my bluetooth controller, nothing shows in the console, however, it does show the…
Lord Goderick
  • 965
  • 2
  • 14
  • 32
2
votes
0 answers

Pygame joystick only recognizes one gamepad at the same time (Raspberry Pi 3, Raspbian Jessie)

I'm really stuck with pygame. I programmed a quiz using two gamepads as buzzers. It all worked fine on OS X, but when I want to run it on my Raspberry Pi 3 pygame only recognizes one of the two gamepads at the same time. Individually they are…
S73FF3N
  • 33
  • 1
  • 8
2
votes
0 answers

List USB Human Interface Devices (HIDs) in Swift

I'm trying to work with gamepads, so I'd like to start by listing all the HIDs connected to my machine. Apple's documentation has code samples which no longer work, so I thought I'd recreate it. Following that documentation, I've attempted to…
SimplGy
  • 20,079
  • 15
  • 107
  • 144
2
votes
1 answer

Nimbus gamepad d-pad mappings?

I can't figure out how are mapped d-pad buttons on the SteelSeries Nimbus gamepad. I tested all buttons and all axes that Unity 3D can listen to, but the d-pad didn't responded for any of them. Can somebody help me please?
StaNov
  • 332
  • 1
  • 4
  • 17
2
votes
0 answers

Unity UI navigation with controller on android

I have a UI canvas in my scene with an EventSystem where the Standalone Input Module is attached. On PC I can navigate through the main menu with a Xbox gamepad. On android (with an android gamepad) it doesn't work. When I start the game the android…
Verdemis
  • 297
  • 1
  • 5
  • 16
2
votes
0 answers

"Emulating" HID Gamepad

Since we are still struggling with sending and receiving bluetooth data, we want to try a different way, ignoring bluetooth for now. Is it possible to write a software, which Windows or Linux is recognizing as a Hardware Gamepad for simulating (so…
honiahaka10
  • 772
  • 4
  • 9
  • 29
2
votes
2 answers

Joystick, gamepad or 3D mouse support in Three.js

An open question to the three.js community. As far as I know, the Three.js framework has different "enhancements" like OrbitControls.js that allow us to use the mouse or a touchscreen to explore a 3D scene. Now my question: Is out there another…
juagicre
  • 1,065
  • 30
  • 42
2
votes
1 answer

How to show choice in Game maker with gamepad functionality

I am working on a Dragon Warrior - type rpg game in Game Maker studio and can't figure out how to get a show choice option that doesn't use the mouse. I have setup the game to run completely with a gamepad, but when I am confronted with the…
2
votes
1 answer

How to disable a button/axis on a gamepad/joystick in Windows?

In Windows 98/XP/Vista/7, how do I disable a joystick button/axis? I am using a PlayStation 1 gamepad connected to my PC using a USB adapter. The problem is that the gamepad is missing the dual analog sticks, and when I press the other buttons, the…
posfan12
  • 2,541
  • 8
  • 35
  • 57
2
votes
1 answer

Can't open /dev/input/js file descriptor after inotify event

I'm creating a Linux module for a game library that let's you hotplug multiple joysticks, it uses inotify to watch /dev/input. I am testing it with 3 joysticks: First I connect 2 joysticks. Then I start the application, the joysticks work and I…
tversteeg
  • 4,717
  • 10
  • 42
  • 77
2
votes
1 answer

Callbacks for USB HID API in OsX are never called for game pad or anything else

I am trying to detect and use a gamepad attached to my Mac in my game. I am using the IOKit for this but without success. The gamepad is recognized as I downloaded a Mac app that views all gamepads attached. It is a Logitech F310 and I have set it…
user1097185
  • 1,058
  • 3
  • 13
  • 28
2
votes
2 answers

Java: How to emulate a XInput gamepad/controller?

I would like to emulate an XInput gamepad (controller) using Java. I've searched around the net but I couldn't really find any solution for my problem. Is it possible to simulate an XInput controller using Java? I'm currently playing a game called…
Tim Visée
  • 2,988
  • 4
  • 45
  • 55