Questions tagged [gamecontroller]

The tag has no usage guidance.

gamecontroller
Filter by
Sorted by
Tagged with
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 ...
0 votes
0 answers
39 views

Retropie Game Controller using evdev python module

I programmed the following script to simulate a game controller evaluating the gpio pins of raspberry pi in retropie os: from evdev import UInput, ecodes as e from gpiozero import Button from time ...
0 votes
0 answers
37 views

How do I merge the inputs from two game controllers?

I'm working on a motion control program that turns joy-con motions into virtual Xbox 360 button presses. It works using two joy-cons as a pair. But my difficulty is in adding a second pair (four joy-...
0 votes
0 answers
15 views

\[GCDevicePhysicalInputStateDiff.changedElements nextObject\] keeps returning the same value over and over

I'm trying to implement the GameController framework in Objective-C and I hit a bit of a roadblock as I don't understand why can't I just iterate over changed inputs. The loop never ends and ...
0 votes
0 answers
77 views

Add gamepad/game controller support to flutter app tried many libraries but none working

i tried many libraries none of those working i tried native code in flutter but method cannont be continuosly invoked any suggestions Adding support of gamepads to Flutter app Also are there any ways ...
-2 votes
2 answers
197 views

Programming rotary encoder with timers

I've designed a custom PCB with an STM32F103CBT6 microcontroller and a 16 MHz crystal oscillator. The board features a button matrix with 16 push buttons, 2 standalone buttons, and 4 rotary encoders. ...
0 votes
0 answers
27 views

No key / motion events triggered from connected game controller in Android Activity

I am developing a game for Android. Want to add game controller support.I read documentation how to add it. https://developer.android.com/develop/ui/views/touch-and-input/game-controllers, but nothing ...
0 votes
0 answers
87 views

Windows.Gaming.Input.RawGameController: uniquely identify device between different applications

I am using Windows.Gaming.Input.RawGameController to receive input from gamepads, joysticks and similar devices. https://learn.microsoft.com/en-us/uwp/api/windows.gaming.input.rawgamecontroller?view=...
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 ...
0 votes
0 answers
102 views

Game controller support in Xamarin.Forms

We have a Xamarin.Forms game. We'd like to support game controller input from Razer Kishi on Android. Is it possible to achieve and if yes, how? Also, as a follow-up question: Is it possible to have a ...
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
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 votes
1 answer
113 views

How to continuously test for the connection of a Game Controller?

How to continuously test for the connection of a Game Controller? Stepping back from code just for a moment ... What do I want to do? 1) upon initial start up of app, I want to wait for a ...
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 ...
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 ...
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 ...
0 votes
1 answer
87 views

Trying to make my first game with pygame and after making the title screen, I've been unable to change my players image

I've been making a game where a car drives around an open road eating other cars. Pressing spacebar allows the player car to transform and cannibalize other cars until any key event is finished. I had ...
0 votes
1 answer
787 views

Detect/override controller "Home" button press android

I have an android application that is meant to be used with a game controller connected to the android device. Most game controllers have a center 'home' button that I would like to use to pause the ...
0 votes
1 answer
265 views

Swift Macos GameController not showing. Controller.count return zero

I'm developing an app which includes Gamecontroller. I'm trying to show the connected controller count, but it´s not working. Here is my simple code: import Cocoa import GameController @...
0 votes
1 answer
5k views

Can I use multiple Gamepads with Unity3d?

I have a couple questions about Unity3d and Game Controllers on PC. In Unity3d is it possible to use a game pad as an input source? If so, which game pads are supported (e.g. Xbox)? Do I need a ...
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 = ...
0 votes
1 answer
63 views

My characters Sensitive. Y Axis is working but not my X Axis

enter image description here I've been following this YouTube video tutorial https://youtu.be/PmIPqGqp8UY and everything was going well my X Axis was working well than I tried working on the Y Axis ...
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?
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
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 ...
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
0 answers
627 views

How do you parse information from a Human Interface Device / HID?

I may not even know enough about interacting with HIDs to ask a good question, but here's my best shot so far. I am using C# and am on Windows currently. I have been researching how to interact with a ...
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 ...
-2 votes
1 answer
378 views

How can I create a "virtual joystick" based on GCController?

I'm building a framework to simplify the reuse of the GameController framework in game projects. When I had to think about unit tests, I realized that I can't emulate the joystick events, any ideas to ...
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 ...
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 ...
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 ...
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
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 ...
-3 votes
1 answer
594 views

Is there any way to make python act like a game controller?

I want to control games with python. I need python to act like a game controller and do what i code. I couldn't find things about this. I'm waiting for your help. Thanks. edit : I pretty much did it ...
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 ...
0 votes
1 answer
72 views

Problem in character control "Character can't jump"

I am practicing with creating a 2D-Game and I write the C#-script code but my character can't jump. I try to replace "Space" with "UpArrow" that also didn't work. if (Input.GetKey(KeyCode.UpArrow) &...
0 votes
0 answers
860 views

Android: reading gamepad (gamecontroller) events from an application not in view

Reading USB gamepad events (button press etc.) from an application in view (focus) might not be an issue on Android. The problem is that I need these events from a persistent application/service/etc. ...
-2 votes
1 answer
64 views

Is it possible to make radial control that can be select with controller L or R

I could not pinpoint to a specific keyword of it. But, I was looking for a control in UWP app that supports down to version 14393 A radial control like in lots of games that can be select with L or ...
0 votes
1 answer
395 views

How to integrate an HID USB Controller?

I'm at a standstill. I have this non-standard game controller which I would like to integrate into an application. It has three joysticks, and fifteen possible buttons. It is an HID compliant USB-...
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 ...
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
2 answers
571 views

Responsive, single button input in A-Frame WebVR

For my A-Frame WebVR game, I need to access a single "controller" button, regardless of platform. For a phone using a magic window or Google Cardboard, any screen tap would count. For Gear VR or ...
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. ...
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 ...
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
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 ...
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 ...