Questions tagged [gamecontroller]

74 questions
2
votes
1 answer

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 of my GCController property. I understand so far…
jwade502
  • 898
  • 1
  • 9
  • 22
2
votes
2 answers

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 Controller Not Detected - It appears that…
galaxigirl
  • 2,390
  • 2
  • 20
  • 29
2
votes
2 answers

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 GameController.framework compatible controllers are also…
Shchvova
  • 458
  • 5
  • 15
2
votes
1 answer

How to use iPhone as Game Controller for OS X, iOS or tvOS

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 controller needs to support the following: - connecting…
Duncan Groenewald
  • 8,496
  • 6
  • 41
  • 76
2
votes
1 answer

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 : Discovering and Connecting to Controllers. I have a game…
Gray lin
  • 33
  • 5
2
votes
0 answers

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't seem to have much information on it. So my…
1
vote
3 answers

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 to use GCVirtualController directly with…
originalmyth
  • 129
  • 6
1
vote
1 answer

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 = GCController.controllers().first the Siri Remote is not…
Shaybc
  • 2,628
  • 29
  • 43
1
vote
0 answers

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 confirmation?
Viktor Sehr
  • 12,825
  • 5
  • 58
  • 90
1
vote
0 answers

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 the others (Steelseries Nimbus and non-mainstream…
Fred
  • 9
  • 2
1
vote
2 answers

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 this. up - down - right - left - upleft -…
Masoud Masoumi Moghadam
  • 1,094
  • 3
  • 23
  • 45
1
vote
1 answer

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 button is release i am able to set get the data…
yen bico
  • 33
  • 6
1
vote
0 answers

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 capture the mouse input, so the user won't be able to…
dude8604
  • 171
  • 1
  • 10
1
vote
2 answers

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. playerController: using System.Collections; using…
Meta Code
  • 557
  • 1
  • 7
  • 15
1
vote
0 answers

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 you do it? Is there an Unity3d friendly hardware…