Questions tagged [gamecontroller]
The gamecontroller tag has no usage guidance.
gamecontroller
78
questions
55
votes
1
answer
1k
views
Game Command format between bluetooth controller and console
I am creating an Android project, in which I have to make an android wearable smartwatch as a game controller that can send commands to games running on a handheld device connected to that smartwatch ...
52
votes
3
answers
8k
views
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 ...
15
votes
5
answers
36k
views
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?
7
votes
1
answer
2k
views
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 ...
7
votes
2
answers
2k
views
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 ...
6
votes
3
answers
4k
views
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 ...
5
votes
2
answers
2k
views
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 ...
5
votes
1
answer
5k
views
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 ...
4
votes
1
answer
3k
views
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 ...
3
votes
2
answers
2k
views
Supporting both GCController and IOHIDDeviceRef
I'm working on OS X app which has support of game controllers. It must support controllers both originated from IOKit HID and GameController.framework.
Problem I'm facing is that most of MFi ...
3
votes
1
answer
831
views
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 ...
3
votes
3
answers
889
views
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 ...
3
votes
0
answers
637
views
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. ...
2
votes
1
answer
2k
views
How to set up GCController valueChangeHandler Properly in Xcode?
I have successfully connected a steel series Nimbus dual analog controller to use for testing in both my iOS and tvOS apps. But I am unsure about how to properly set up the valueChangeHandler portion ...
2
votes
1
answer
378
views
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 ...
2
votes
1
answer
421
views
tvos 15 - Siri Remote not returning in the array: GCController.controllers()
in swiftUI & tvOS 15, when calling the GCController.controllers() to get the list of controllers connected to the apple tv,
import GameController
...
let siriRemoteAsGameController = ...
2
votes
1
answer
927
views
iOS Game Controller framework : How to use "startWirelessControllerDiscoveryWithCompletionHandler"
When game controller be paired from system setting, all is fine.
But I want to discover & pair game controller in my app.
Actually I found that it seems feasible by Apple's docs.
doc link : ...
2
votes
0
answers
332
views
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 ...
2
votes
0
answers
7k
views
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 ...
2
votes
2
answers
267
views
Amazon app Game Controller requirement notification
I have an app in the Amazon store that is targeted for Fire TV (box and stick). It works great just using the remote. However when starting the app, there is an annoying notification to the user 'Game ...
2
votes
1
answer
574
views
How to use iPhone as Game Controller for OS X, iOS or tvOS [closed]
I am looking for some sample code that would allow an app on iOS to function as a game controller for an app running on OS X (and in future tvOS or another iOS device such as the iPadPro). The ...
2
votes
0
answers
2k
views
Why is SDL_HapticOpenFromJoystick() not working in SDL 2
I'm working on a game that will use SDL 2.0.3 for most of the back-end code (rendering, events, game controllers, etc...). So far I've been able to figure out most of my problems, but this issue doesn'...
1
vote
1
answer
930
views
Game controller button number incompability between SDL2 and other tools (Windows' and online tools)
I'm trying to make a 1 to 1 mapping between physical game controller device and virtual device (vJoy). What I want to achieve is when button no X is pressed on physical device, make button no X ...
1
vote
3
answers
1k
views
GCVirtualController not displaying with SKScene
The Virtual controllers appear but are then obscured by objects added to the view. I've also tried adding the virtual controllers in the UIViewController but this doesn't work either.
Is it possible ...
1
vote
1
answer
547
views
How not to let Home button quit your tvOS app in SwiftUI
In UIKit we can use GCEventViewController to intercept the game controllers from propagating Home button presses to the responders (and have them quit our app) by setting ...
1
vote
2
answers
11k
views
python how to detect key combinations with opencv waitkey library?
I am having a machine learning project which is designing autonomous driver for speed dreams game in linux. In this case I have to find a way to get keyboard outputs to actual 1-dimensional array like ...
1
vote
2
answers
3k
views
How to Rotate a GameObject?
I'm watching unity tutorials and in the control code of the ship I would like to make it rotate on its axis, that is, it can rotate 360 degrees continuously while I press the right key for example.
...
1
vote
1
answer
635
views
GCController framework (OSX) not generating notifications
I'm trying to integrate the GCController framework into my project. I'm not so familiar with Objective-C, so please excuse my ignorance around how this is supposed to work.
I have a class that ...
1
vote
2
answers
703
views
Game controller layout detection - swift
How do I detect the game controllers layout from apple tv? I want to change the controls if the layout is different for the controller which will make the game easier to play. .For example, the apple ...
1
vote
2
answers
685
views
tvOS GameController At what point does GCController.controllers become populated after launch?
I'm trying to read the GCController.controllers() array after my app has launched to know which controllers were already connected to the AppleTV at app launch. But GCController.controllers().count is ...
1
vote
1
answer
330
views
Moving skspritenode with Game Controller (ThumbStick) Swift
I try to build 2d - top down game, and I have player(skspritenode) and I want to move him when I use the thumbstick. I use this code:
gamepad its GCExtendedGamepad
if gamepad.leftThumbstick.xAxis....
1
vote
1
answer
563
views
Dual Virtual Joystick for iOS simultaneous use
I'm using a virtual joystick for SpriteKit, and it works great. I have tried either JCInput version, or SpriteKit-Joystick version. Both were used for the movement, and used them on the left.
This ...
1
vote
0
answers
330
views
How to detect when a game controller gets connected in Android
I'm trying to make a native module for React Native/Expo using Expo Modules API to support game controllers in my app.
On iOS there is a notification/event that is posted immediately after a game ...
1
vote
0
answers
27
views
Does iOS libSDL 2.012 require bluetooth confirmation?
I just updated SDL to 2.012 for my game-app and it seems my game is now required to ask for permission at start, as SDL looks for Bluetooth GameControllers?
Is there any way to get around this ...
1
vote
0
answers
339
views
Alternative for HID API to implement Game controller for MacOS application?
I am working on a game targeting Mac and iOS, which has game controller support implemented recently.
I use Game Controller (GC) framework for PS4/ XBox controllers and HID API included in IOKit for ...
1
vote
1
answer
75
views
How do you send single data when the button is pressed and not looping on the inside and stop the action when the button is release
So i am developing a controller in my mobile app using java and currently whenever i touch the button it will send 3 data in a row. when it should only be sending one data and another data when the ...
1
vote
0
answers
434
views
Prevent game from capturing mouse
I'm working on a program for accessible PC gaming for people with mobility limitations. It will be like an on screen keyboard, except it will be a game controller. The problem is that most games ...
1
vote
0
answers
54
views
Suggestions needed - custom VR remote/controller development
I am interested in building my own custom wireless mobile/desktop VR controller/remote to work with my Unity3d dev. Here are some questions for your advice/feedback/comments, many thanks.
How would ...
1
vote
2
answers
558
views
In A-frame, how do I make a game-controler.api 'gamepadbuttondown:0' mimic an onClick event in javascript
I'm trying to make a light-switch on the wall in A-Frame control ambient lighting.
I placed actual lights in the scene so I could name them, and use javascript to make the changes.
Since I could not ...
1
vote
0
answers
158
views
Supporting MOGA game controllers on Android TV
I would like to upgrade one of our MOGA-compatible games to support Android TV.
Is MOGA game controllers supported by Android TV?
Is MOGA still around? Their Facebook page is not updated since last ...
1
vote
2
answers
91
views
Close iAd interstitial with a Game Controller
I'm making a Sprite Kit game that fully supports wireless game controllers.
Using one means you won't always be able to touch your screen for some little actions.
(For example, if you use an iPad as ...
1
vote
0
answers
143
views
Different bits for the same buttons in two different game controllers (joyGetPosEx)?
I have two different game controllers, and I've been using joyGetPosEx (Windows API) to get information from them. They each have buttons with the same physical labels, but some of those buttons have ...
1
vote
1
answer
665
views
Visual Basic -- Key List (Gamecontroller?)
How can I find a specific value for Gamecontroller-Key?
I want to use them for a script in a game.
Example:
isKeyPressed(Settings.GetValueKey("Key", Keys.X))
Here are the only key-values I found:
...
0
votes
2
answers
1k
views
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?? ...
0
votes
1
answer
650
views
SDL2_pollevent() Controller dpad continuous hold?
I'm trying to register controller button/dpad presses and continuous hold of said buttons that way it spits the output out continuously instead of one press at a time and then exiting the poll event ...
0
votes
1
answer
449
views
How to select and click on child views of Android ViewPager2 with Dpad/Game Controller
I am investigating Bluetooth Dpad and game controllers in my current Android Project.
I can successfully select and click on all my UI widets within my App.
However I have a ViewPager2 that holds ...
0
votes
1
answer
208
views
Get angle of direction from GCExtendedGamepad.leftThumbstick
How do I get the angle of direction from the left/right thumb-stick of a game controller in swift? Any help would be appreciated.
0
votes
1
answer
984
views
SDL 2.0 - SDL_GameControllerGetButton not working
I am developing an application that needs to display which buttons are pressed on a joystick.
For this, I used SDL to read the state of my joysticks, the code is:
bool JoystickInfo::getButton (const ...
0
votes
1
answer
578
views
C# controller support without XNA or DirectX
I'm trying to build a Windows game without the now sunset XNA or DirectX, but I'm having difficulty figuring out how to create controller support (mostly just XBox controllers). Is there anything in ...
0
votes
1
answer
413
views
Simulate keyboard key press in Python to play games on Linux?
I'd like to simulate keyboard events, mainly WASD from Python to control games on Linux.
So far, I've tried PyKey and Keyboard module but unfortunately, they are unable to simulate the keypress in a ...