Game Controller

RSS for tag

Support hardware game controllers in your game using Game Controller.

Posts under Game Controller tag

124 Posts

Post

Replies

Boosts

Views

Activity

Controller con cavo non funziona
Il mio gamepad con cavo usb non funziona più. Ha sempre funzionato su Steam, ma ora non viene più rilevato come controller. Non viene rilevato come controller nemmeno su giochi scaricati dall'apple store. Ho provato diversi gamepad e il problema è sempre lo stesso. Se vado su "informazioni di sistema" viene rilevata come periferica usb. Se faccio il test su https://gamepad-tester.com/ funziona tutto correttamente, ma continua a non essere rilevato come controller dai giochi. Come posso sistemare il problema? Fino ad un mese fa funzionava tutto perfettamente. Attualmente ho macos Monterey 12.6.1 Grazie
1
0
848
Nov ’22
Controller not working in macOS 13.0
Hello, After upgrading to macOS 13.0, the OS no longer responds to input from my DualSense controller. It used to work just fine before the upgrade. The controller does get detected by the OS and can be seen as connected in the controller settings pane. Clicking on the Identify button in the Game controllers settings pane does make the controller to vibrate. But it seems the OS either is not receiving input from the controller, or is not responding to them. Can you please confirm if this is a bug ? Is there anything I can do to get the controller working again ? Thank you so much
9
0
2.9k
Nov ’22
Xbox One Wireless Controller reported as GCMicroGamepad on Catalina
I'm using an Xbox Wireless Controller Model 1708 (listed as a supported device here) on a Late 2012 iMac running Catalina 10.15.7. The controller connects to the system just fine, but I can't interface with it using the Game Controller framework. At boot, I query the list of connected controllers and it's always empty--even if I've already connected my controller to the iMac. I can register for the controller connect/disconnect notifications, and they appear to be working. I receive a connect notification for my Xbox controller shortly after booting (not sure why there's a delay...). The problem is that the GCController object for my Xbox controller returns NIL when I query its extended gamepad profile. How can I query button states if I can't access the extended profile? I can access the deprecated GCGamepad profile as well as the micro gamepad profile, but neither give me access to the full controller's button state. I've tried searching for help and I noticed an unanswered question with the same problem here. How are you all supporting Xbox controllers in your apps? Is it unsupported in Catalina? Cheers! :)
0
0
1.4k
Oct ’22
GamePad response slowly in iPadOS app running on M1 Mac
I connected the native PS4/Xbox joystick to my M1 MacBook to test my iPad Game, choose "My Mac (Designed for iPad)" and run it via xcode/ archive and install it as an mac app. But the joystick buttons response very slowly and have large delay (detect input via GCController.extendedGamepad.valueChangedHanlder). The same code runs property if I build the app to iPad and connect the same joystick. My app CPU Percentage Used is over 100%, is it relative to this question?
2
0
1.3k
Oct ’22
Controller not working for some steam's games in macOS 12.6
I'm using MacBook Pro (14-inch, 2021) paired over bluetooth with Xbox Wireless Controller (STANDARD GAMEPAD Vendor: 045e Product: 02e0) according to result tested on https://gamepad-tester.com/ which works fine. Steam Big picture mode works fine. I test the following games with and without steam input support. Steam's Hollow Knight Steam's Overcooked 2 the controller doesn't work in game at all but it able to navigate and works fine with the steam overlay in-game. Does anybody have this issue? is there any workaround?
1
0
1.7k
Oct ’22
GameController not work properly on M1 Macbook (GCKeyboard and GCMouse handler not work when running iOS app on M1-Mac directly).
Hello everyone, I am debugging an iPadOS/iOS app on XCode and want to run it on Mac directly (choose "My Mac (Designed for iPad)"). Everything is all right except for the input. When I press any key on my MacBook's keyboard or the mouse button on my connected mouse, I never accept any callback events (no print and no breakpoint worked in the handler callback block) via the GCMouse.current.mouseMovedHandler and GCKeyboard.coalesedKeyboard.keyboardInput.valueChangeHandler, while they seem to be registered successfully. (The same code works if I build and run an app on iPad connected with bluetooth keyboard and mouse.) GCKeyboard.coalesedKeyboard and GCMouse.current are not nil, and I can accept GCkeyboardDidConnectNotification and GCMouseDidConnectNotification events. But if I connect multi keyboards, I receive connect notification only once. And printf("%d", (int)keyboardInput.anyKeyPressed) in my Update Function is always "0"(false). However, the callback in UIKit - (void)pressesBegan:(NSSet<UIPress *> *)presses withEvent:(UIPressesEvent *)event works. Is GameController not support MacBook's native keyboard and mouse input? System Version: macOS Monterey 12.6 Device: MacBookPro(13-inch, M1, 2020) XCode Version: 13.3.1 (Besides, when I connect the xbox/ps4 joystick, the GCController input handler work but will have very long delay. It's another question.)
0
0
1k
Sep ’22
Xcode 14.1 beta won't build when the GameController module is imported
Hey, there's an issue in the latest Xcode 14.1 beta (14B5024h) where importing the GameController module causes the build to fail. It produces the following error: Failed to build module 'GameController' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug Steps to reproduce Create new Xcode app project Add the line import GameController to the top of the file It can't build and fails with the above error. I've also filed a bug report with Apple (FB11538209). Please fix this issue!
10
7
3.9k
Sep ’22
Log in screen
Can you tell me if the following within the policy of Apple: We are an educational gaming company and we want to create a Games login screen that has a (login) button and (register) button.Register button will be used to redirect the user to our website for registration and purchases subscriptions and game assets. The login button will be used to login then retrieves data from our servers related to the child account to reflect his/her performance on games since we are educational game, and purchased items and/or levels. The login will also pass the token for communicating progress in the game. Has any one done this design before or advise on it. Thank you
0
0
888
Sep ’22
tvOS 15 DualSense is minimizing app on PS button long press
I previously posted this problem in regards of a similar problem on iPads https://developer.apple.com/forums/thread/711905 on iPads the problem can be solved by using controller.physicalInputProfile.buttons[GCInputButtonHome].preferredSystemGestureState = GCSystemGestureStateDisabled; However this doesn't work on tvOS. A short press on the PS button is opening up some kind of menu (look at the attached screenshot) and a long press is causing the app to get minimized. Can this be avoided somehow? This is actually a very annoying problem for users when the PS button doesn't work correctly and causing the app to get minimized.
2
0
1.5k
Sep ’22
Connect controller from game (without settings.app)
I'm trying to understand the startWirelessControllerDiscovery method from GCController. I'm able to pair a Playstation controller in Settings.app > Bluetooth. It works perfectly in my game afterward. But I'm also trying to let the user perform the pairing directly from the game. The controller is unknown to the device at this point. I'm executing startWirelessControllerDiscovery in the code but nothing happens. The controller is in "pairing mode" but isn't connecting/pairing. My expectation would be that the controller connects to the device in the same way as manually selecting it from settings. If startWirelessControllerDiscovery isn't supporting this scenario then what is the intended purpose?
1
0
821
Aug ’22
How do i get an Approval Number from China Mainland?.
I want to publish my game in China. But it is not written in English. I do not know the ABCD of CHINESE language. What Should i do?. I need an Approval Number. Apple does not provide proper support to get any Approval Number from China Mainland. Availability in China Mainland Chinese law requires games to secure an approval number from China's National Press and Publication Administration. If you offer or plan to offer paid games or games with in-app purchases, provide your approval number and supporting documents to make sure your app will be available on the App Store in China mainland.
1
1
3.4k
Aug ’22
iOS 15 DualSense is opening App Library on PS button long press
I'm currently beta testing my app on TestFlight and some users reported a problem with the DualSense controller. It seems on iOS 15 a long press on the PS Button of the controller is opening the App Library and I don't receive a callback via the valueChangedHandler function. The App library which will be opened looks like this This is how I handle all controller inputs: func handleController(controller: GCController) { controller.extendedGamepad?.valueChangedHandler = { [weak self] (gamepad: GCExtendedGamepad, element: GCControllerElement) in guard let self = self else { return } // no feedback received when performing a long press on the PS button } Is there any way to suppress this behavior? Sony's PS Remote Play app somehow manages to suppress it, but I don't know how, nor can I find anything in Apple's official API documentation.
2
0
1.6k
Aug ’22
mouseMovedHandler for GCMouse intermittently lagging
We have a mouseMovedHandler for GCMouse that gets pointer delta updates (when the pointer is locked). This mostly works fine, but on occasion the handler will go through bouts of delayed updates - it will pause for a few seconds before receiving more updates, even though the hardware mouse pointer is being moved. The rest of the app continues to be responsive (ie, the MTKView still pushes frames and the Metal frame rate is still smooth). It appears that something is blocking or delaying the GCMouseMoved events being sent by the System to the mouseMovedHandler. Is there a way we can diagnose this specific delay? Context: IOS App on Apple Silicon M1. APIs: Metal, AVAudio (OGG), GCMouse, GCKeyboard
0
0
1.1k
Jun ’22
Xbox controllers acting wierd
So I got a xbox series x controller a few month ago from a friend of mine who owned a xbox. I recently decided to use it because I really want to play games. So I connected this thing to my Macbook and I found it wierd as the icon of the connection is the generic bluetooth icon rather than the controller icon. Later I fired up F1 2017, and found the controller completely unusable, and the people in Feral sended a plist to me in order to use it. The first time I installed the plist it worked, but the second and the third time didn't work. So I am very curious about this thing. Possible problem: Driver update, because our city is in lockdown I cant do this My macbook's problem. It is a 2020 M1 Macbook 13in MacOS, I am running on 12.3.1 stable. Please help I really need to use my controller to game it is just too painful to not play games in Shanghai now. Edit: Also, the controller does not automatically reconnect if i closed this thing. I need to delete it in Bluetooth and then reconnect it.
1
0
1.1k
May ’22
MacOS GameKit Dashboard Doesn't Support Gamepad
We're working on a game for iOS, tvOS, and macOS that includes GameKit/GameCenter integration. On tvOS and iOS, when we bring up the Dashboard to access GameCenter with a Gamepad, the controller continues to function properly in that Dashboard. When we do so on macOS, the controller input continues through to the game and the GameCenter Dashboard needs to be interacted with using a mouse. We're able to disable the input falling-through to our game but not being able to use the Dashboard with a controller is an inconsistent experience. Is there a way to fix this? Is this a bug in macOS? All three platforms are using the same exact GKAccessPoint and GKViewController code.
0
1
934
May ’22
Controller con cavo non funziona
Il mio gamepad con cavo usb non funziona più. Ha sempre funzionato su Steam, ma ora non viene più rilevato come controller. Non viene rilevato come controller nemmeno su giochi scaricati dall'apple store. Ho provato diversi gamepad e il problema è sempre lo stesso. Se vado su "informazioni di sistema" viene rilevata come periferica usb. Se faccio il test su https://gamepad-tester.com/ funziona tutto correttamente, ma continua a non essere rilevato come controller dai giochi. Come posso sistemare il problema? Fino ad un mese fa funzionava tutto perfettamente. Attualmente ho macos Monterey 12.6.1 Grazie
Replies
1
Boosts
0
Views
848
Activity
Nov ’22
Steam Controller detected as a keyboard
I can't use my Steam-Controller with non-steam games like World of Warcraft, because they detect the controller as keyboard and mouse. Where can I download a native MacOS driver witch does not require the Steam client running?
Replies
1
Boosts
0
Views
2.2k
Activity
Nov ’22
How to get code testflight please? 😔🙏
How to get code testflight please? 😔🙏
Replies
0
Boosts
0
Views
747
Activity
Nov ’22
Controller not working in macOS 13.0
Hello, After upgrading to macOS 13.0, the OS no longer responds to input from my DualSense controller. It used to work just fine before the upgrade. The controller does get detected by the OS and can be seen as connected in the controller settings pane. Clicking on the Identify button in the Game controllers settings pane does make the controller to vibrate. But it seems the OS either is not receiving input from the controller, or is not responding to them. Can you please confirm if this is a bug ? Is there anything I can do to get the controller working again ? Thank you so much
Replies
9
Boosts
0
Views
2.9k
Activity
Nov ’22
Xbox One Wireless Controller reported as GCMicroGamepad on Catalina
I'm using an Xbox Wireless Controller Model 1708 (listed as a supported device here) on a Late 2012 iMac running Catalina 10.15.7. The controller connects to the system just fine, but I can't interface with it using the Game Controller framework. At boot, I query the list of connected controllers and it's always empty--even if I've already connected my controller to the iMac. I can register for the controller connect/disconnect notifications, and they appear to be working. I receive a connect notification for my Xbox controller shortly after booting (not sure why there's a delay...). The problem is that the GCController object for my Xbox controller returns NIL when I query its extended gamepad profile. How can I query button states if I can't access the extended profile? I can access the deprecated GCGamepad profile as well as the micro gamepad profile, but neither give me access to the full controller's button state. I've tried searching for help and I noticed an unanswered question with the same problem here. How are you all supporting Xbox controllers in your apps? Is it unsupported in Catalina? Cheers! :)
Replies
0
Boosts
0
Views
1.4k
Activity
Oct ’22
GamePad response slowly in iPadOS app running on M1 Mac
I connected the native PS4/Xbox joystick to my M1 MacBook to test my iPad Game, choose "My Mac (Designed for iPad)" and run it via xcode/ archive and install it as an mac app. But the joystick buttons response very slowly and have large delay (detect input via GCController.extendedGamepad.valueChangedHanlder). The same code runs property if I build the app to iPad and connect the same joystick. My app CPU Percentage Used is over 100%, is it relative to this question?
Replies
2
Boosts
0
Views
1.3k
Activity
Oct ’22
Controller not working for some steam's games in macOS 12.6
I'm using MacBook Pro (14-inch, 2021) paired over bluetooth with Xbox Wireless Controller (STANDARD GAMEPAD Vendor: 045e Product: 02e0) according to result tested on https://gamepad-tester.com/ which works fine. Steam Big picture mode works fine. I test the following games with and without steam input support. Steam's Hollow Knight Steam's Overcooked 2 the controller doesn't work in game at all but it able to navigate and works fine with the steam overlay in-game. Does anybody have this issue? is there any workaround?
Replies
1
Boosts
0
Views
1.7k
Activity
Oct ’22
[UIKit/GameController] Is there any way to detect middle mouse button up and down in iOS without using GCMouse (maybe use UIKit)?
I found that GCMouse not work when I run iOS app on M1 Mac directly, so I want to detect and handle the mouse event via gestureRecognizer or other way. But is there any way to handle middle/right button easily?
Replies
2
Boosts
0
Views
1.1k
Activity
Sep ’22
GameController not work properly on M1 Macbook (GCKeyboard and GCMouse handler not work when running iOS app on M1-Mac directly).
Hello everyone, I am debugging an iPadOS/iOS app on XCode and want to run it on Mac directly (choose "My Mac (Designed for iPad)"). Everything is all right except for the input. When I press any key on my MacBook's keyboard or the mouse button on my connected mouse, I never accept any callback events (no print and no breakpoint worked in the handler callback block) via the GCMouse.current.mouseMovedHandler and GCKeyboard.coalesedKeyboard.keyboardInput.valueChangeHandler, while they seem to be registered successfully. (The same code works if I build and run an app on iPad connected with bluetooth keyboard and mouse.) GCKeyboard.coalesedKeyboard and GCMouse.current are not nil, and I can accept GCkeyboardDidConnectNotification and GCMouseDidConnectNotification events. But if I connect multi keyboards, I receive connect notification only once. And printf("%d", (int)keyboardInput.anyKeyPressed) in my Update Function is always "0"(false). However, the callback in UIKit - (void)pressesBegan:(NSSet<UIPress *> *)presses withEvent:(UIPressesEvent *)event works. Is GameController not support MacBook's native keyboard and mouse input? System Version: macOS Monterey 12.6 Device: MacBookPro(13-inch, M1, 2020) XCode Version: 13.3.1 (Besides, when I connect the xbox/ps4 joystick, the GCController input handler work but will have very long delay. It's another question.)
Replies
0
Boosts
0
Views
1k
Activity
Sep ’22
Xcode 14.1 beta won't build when the GameController module is imported
Hey, there's an issue in the latest Xcode 14.1 beta (14B5024h) where importing the GameController module causes the build to fail. It produces the following error: Failed to build module 'GameController' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug Steps to reproduce Create new Xcode app project Add the line import GameController to the top of the file It can't build and fails with the above error. I've also filed a bug report with Apple (FB11538209). Please fix this issue!
Replies
10
Boosts
7
Views
3.9k
Activity
Sep ’22
Log in screen
Can you tell me if the following within the policy of Apple: We are an educational gaming company and we want to create a Games login screen that has a (login) button and (register) button.Register button will be used to redirect the user to our website for registration and purchases subscriptions and game assets. The login button will be used to login then retrieves data from our servers related to the child account to reflect his/her performance on games since we are educational game, and purchased items and/or levels. The login will also pass the token for communicating progress in the game. Has any one done this design before or advise on it. Thank you
Replies
0
Boosts
0
Views
888
Activity
Sep ’22
tvOS 15 DualSense is minimizing app on PS button long press
I previously posted this problem in regards of a similar problem on iPads https://developer.apple.com/forums/thread/711905 on iPads the problem can be solved by using controller.physicalInputProfile.buttons[GCInputButtonHome].preferredSystemGestureState = GCSystemGestureStateDisabled; However this doesn't work on tvOS. A short press on the PS button is opening up some kind of menu (look at the attached screenshot) and a long press is causing the app to get minimized. Can this be avoided somehow? This is actually a very annoying problem for users when the PS button doesn't work correctly and causing the app to get minimized.
Replies
2
Boosts
0
Views
1.5k
Activity
Sep ’22
Connect controller from game (without settings.app)
I'm trying to understand the startWirelessControllerDiscovery method from GCController. I'm able to pair a Playstation controller in Settings.app > Bluetooth. It works perfectly in my game afterward. But I'm also trying to let the user perform the pairing directly from the game. The controller is unknown to the device at this point. I'm executing startWirelessControllerDiscovery in the code but nothing happens. The controller is in "pairing mode" but isn't connecting/pairing. My expectation would be that the controller connects to the device in the same way as manually selecting it from settings. If startWirelessControllerDiscovery isn't supporting this scenario then what is the intended purpose?
Replies
1
Boosts
0
Views
821
Activity
Aug ’22
How do i get an Approval Number from China Mainland?.
I want to publish my game in China. But it is not written in English. I do not know the ABCD of CHINESE language. What Should i do?. I need an Approval Number. Apple does not provide proper support to get any Approval Number from China Mainland. Availability in China Mainland Chinese law requires games to secure an approval number from China's National Press and Publication Administration. If you offer or plan to offer paid games or games with in-app purchases, provide your approval number and supporting documents to make sure your app will be available on the App Store in China mainland.
Replies
1
Boosts
1
Views
3.4k
Activity
Aug ’22
iOS 15 DualSense is opening App Library on PS button long press
I'm currently beta testing my app on TestFlight and some users reported a problem with the DualSense controller. It seems on iOS 15 a long press on the PS Button of the controller is opening the App Library and I don't receive a callback via the valueChangedHandler function. The App library which will be opened looks like this This is how I handle all controller inputs: func handleController(controller: GCController) { controller.extendedGamepad?.valueChangedHandler = { [weak self] (gamepad: GCExtendedGamepad, element: GCControllerElement) in guard let self = self else { return } // no feedback received when performing a long press on the PS button } Is there any way to suppress this behavior? Sony's PS Remote Play app somehow manages to suppress it, but I don't know how, nor can I find anything in Apple's official API documentation.
Replies
2
Boosts
0
Views
1.6k
Activity
Aug ’22
How do I find my Apple Team ID
Hi all. I just purchased my first iOS game and need to transfer the code to my Apple act. and I cant figure out where/how to locate my apple ID
Replies
3
Boosts
2
Views
112k
Activity
Jul ’22
mouseMovedHandler for GCMouse intermittently lagging
We have a mouseMovedHandler for GCMouse that gets pointer delta updates (when the pointer is locked). This mostly works fine, but on occasion the handler will go through bouts of delayed updates - it will pause for a few seconds before receiving more updates, even though the hardware mouse pointer is being moved. The rest of the app continues to be responsive (ie, the MTKView still pushes frames and the Metal frame rate is still smooth). It appears that something is blocking or delaying the GCMouseMoved events being sent by the System to the mouseMovedHandler. Is there a way we can diagnose this specific delay? Context: IOS App on Apple Silicon M1. APIs: Metal, AVAudio (OGG), GCMouse, GCKeyboard
Replies
0
Boosts
0
Views
1.1k
Activity
Jun ’22
Nintendo Switch Pro Controller support broken
I can connect my Switch Pro controller but It is totally useless. I can connect it to Steam, but any other app doesn't recognize it properly nor recognize its input keys.
Replies
1
Boosts
0
Views
1.2k
Activity
May ’22
Xbox controllers acting wierd
So I got a xbox series x controller a few month ago from a friend of mine who owned a xbox. I recently decided to use it because I really want to play games. So I connected this thing to my Macbook and I found it wierd as the icon of the connection is the generic bluetooth icon rather than the controller icon. Later I fired up F1 2017, and found the controller completely unusable, and the people in Feral sended a plist to me in order to use it. The first time I installed the plist it worked, but the second and the third time didn't work. So I am very curious about this thing. Possible problem: Driver update, because our city is in lockdown I cant do this My macbook's problem. It is a 2020 M1 Macbook 13in MacOS, I am running on 12.3.1 stable. Please help I really need to use my controller to game it is just too painful to not play games in Shanghai now. Edit: Also, the controller does not automatically reconnect if i closed this thing. I need to delete it in Bluetooth and then reconnect it.
Replies
1
Boosts
0
Views
1.1k
Activity
May ’22
MacOS GameKit Dashboard Doesn't Support Gamepad
We're working on a game for iOS, tvOS, and macOS that includes GameKit/GameCenter integration. On tvOS and iOS, when we bring up the Dashboard to access GameCenter with a Gamepad, the controller continues to function properly in that Dashboard. When we do so on macOS, the controller input continues through to the game and the GameCenter Dashboard needs to be interacted with using a mouse. We're able to disable the input falling-through to our game but not being able to use the Dashboard with a controller is an inconsistent experience. Is there a way to fix this? Is this a bug in macOS? All three platforms are using the same exact GKAccessPoint and GKViewController code.
Replies
0
Boosts
1
Views
934
Activity
May ’22