Questions tagged [gamecontroller]
74 questions
52
votes
3 answers
Pygame Xbox One Controller
I am trying to run some code that will allow the user to control with an Xbox Controller. I have it working with the Xbox 360 controller using Pygame. Then when I try to use the Xbox one controller and it is able to read the as "connected" but it…

Rjbeckwith
- 720
- 8
- 16
48
votes
1 answer
Game Command format between bluetooth controller and console
I am creating an Android project, in which I have to make android wearable smart watch as game controller which can send commands to games running on handheld device connected to that smartwatch over BLE(Bluetooth Low Energy).
I designed controller…

Manish Dubey
- 4,206
- 8
- 36
- 65
13
votes
5 answers
How do I create a virtual gamepad?
How would I go about creating a "gamepad" which appears to DirectInput applications as a normal game controller but the state of its controls is actually defined by software?

Dataflashsabot
- 1,369
- 5
- 19
- 24
7
votes
2 answers
How do I use Apple's GameController framework from a macOS Command Line Tool?
I'm trying to get the following code to work as a macOS command line tool. It is important that this not be a Cocoa app, so that is not an option.
This same code works perfectly in the same project with a Cocoa App target and detects a compatible…

Patrick Hogan
- 2,098
- 4
- 20
- 28
7
votes
1 answer
How do I connect to a external game controller in swift - apple tv
I have followed this tutorial here: https://cartoonsmart.com/how-to-support-external-game-controllers-with-swift-2-and-sprite-kit-for-the-new-apple-tv/ to connect a external game controller to the apple tv in sprite kit, but I was unable to do it…

Rishi
- 399
- 6
- 23
6
votes
3 answers
Is it possible to make a Game Controller vibrate using Xcode?
I've been using Apple's GameController framework so far, but there's no possibility to make the controller vibrate. I'm searching for something similar to Unity's Handheld.Vibrate(), but the last hours of research make me believe there's no simple…

Valentin
- 365
- 6
- 19
5
votes
2 answers
How to prevent game controller button B from quitting app / navigating back to menu in tvOS
The game controller button B is, by default, quitting the app and navigating back to the tvOS home screen. At first I thought this was intuitive, but quickly realized that's what the Nimbus MENU button (dead middle of the controller) is for, and…

Bobjt
- 4,040
- 1
- 29
- 29
5
votes
1 answer
If Steam can map the guide button on the Xbox 360 controller why can't I
I want to map the Xbox Guide button on the Xbox 360 controller.
I've been searching for a possible solution for some time now and from the looks of my google results it seems that the only way to do so is by using a custom driver.
However, I tried…

Nobbe
- 279
- 4
- 11
4
votes
1 answer
iOS Swift Interrupt Keyboard Events
I have problem to intercept keyboard events. I have connected my iOS with SteelSeries Free (gamepad controller) which when connected to iOS will be detected as a Bluetooth Keyboard. This is tested when I open Notes, any button presses in the gamepad…

CodingBird
- 705
- 2
- 11
- 22
3
votes
3 answers
Keyboard as game controller, handling multiple keys in Swift
I'm trying to make a spaceship move on the screen with the keyboard. I manage to deal with key events, but I noticed that when multiple keys are kept down at the same time, it won't behave correctly and only one will have priority. I'm using a…

BadgerBadger
- 696
- 3
- 12
3
votes
0 answers
Trouble reading game controller in iOS Swift Playgrounds
I've been tinkering with Swift Playgrounds to learn Swift and SpriteKit. Until now, things were going great. I was able to put together a simple but fun game developed entirely on a 9.7" iPad Pro. All it needed was game controller support. After…

zeiche
- 31
- 1
3
votes
1 answer
Why won't SDL detect my iBuffalo game controller on Linux (PocketCHIP)?
I recently obtained an ARM-based Linux computer called a PocketCHIP. It's a great little computer! I'm working on writing a program which uses SDL 2.0.4 and my iBuffalo USB gamepad. However, SDL does not seem to recognize the controller on the…

Andrew
- 227,796
- 193
- 515
- 708
2
votes
1 answer
GameController button support in the background
I am using the GameController framework to build a SwiftUI macOS app, that can detect when buttons on an Xbox Controller are pressed. When the view is the foreground ( active window present ), I can monitor which button is pressed. However, when the…

angryip
- 2,140
- 5
- 33
- 67
2
votes
0 answers
Programmatically Press a Game Controller Button on Windows
TLDR
Have a USB Game Controller, searching for a method in any Windows compatible language to press a button on it.
Detail
I have Windows gaming PC and a set of four Ultimarc Ultrasticks built into an arcade cabinet. Each Ultimarc Joystick…

Evan
- 2,441
- 23
- 36
2
votes
0 answers
How to test/handle SDL2 game controller inputs?
I am trying to figure out how to properly handle game controller inputs in an SDL2 program. I have written a program which is able to handle inputs from my game controller on my Mac, but not on my Linux machine. However, the game controller does…

Andrew
- 227,796
- 193
- 515
- 708