Post not yet marked as solved
My App has lots its support for this controller it seems.
Has Sony PS3/Dual Shock 3 support officially been removed from Monterrey?
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 registered as the first controller, in fact it is not registered at all !
up until tvOS 15 (14.7 for example) it was working
even if i register for notification the connect event isn't dispatched for the already connected Siri remote
NotificationCenter.default.addObserver(forName: .GCControllerDidConnect, object: nil, queue: .main) { note in
print("GCControllerDidConnect")
if let detectedGCController = note.object as? GCController {
print("Controller Detected")
}
}
GCController.startWirelessControllerDiscovery(completionHandler: {})
i cannot find a change in that area according to Appel's $#itty documentation
any help would be appreciated
Post not yet marked as solved
Hello,
we developed Game controller which is connecting over BLE. It works on PC, Android and MAC but is not working on iOS. According to the MFI page https://mfi.apple.com/en/faqs.html devices with supported profiles do not require MFI. HID Gamepad is supported profile. So what might be the problem?
I have an app which uses mouse to interact in side the app ,
i want to lock pointer to prevent it from overlap with system gesture on iphone se 2020 like if pointer reach up right corner it grabs notification window
i used method like here in WWDC2020
https://developer.apple.com/videos/play/wwdc2020/10617?time=461
with view controller and called func which should change pointer state from viewDidLoad func
import UIKit
class ViewController: UIViewController {
var pointerLocked :Bool = true
override var prefersPointerLocked: Bool
{
return pointerLocked
}
override func viewDidLoad()
{
super.viewDidLoad()
changePointerState(newState: false)
}
func changePointerState(newState:Bool)
{
pointerLocked=true
self.setNeedsUpdateOfPrefersPointerLocked()
}
}
Post not yet marked as solved
The following code does not work in an Xcode Playgrounds or the Swift Playgrounds App on iOS oder macOS.
But the same code works when used in an app.
Does anyone know how to get the notifications running in a Playground?
import GameController
import Combine
import SwiftUI
import PlaygroundSupport
PlaygroundPage.current.needsIndefiniteExecution = true
var cancellables = Set<AnyCancellable>()
NotificationCenter.default.publisher(for: NSNotification.Name.GCControllerDidConnect)
.subscribe(on:DispatchQueue.global())
.print()
.receive(on: DispatchQueue.main)
.sink { notification in
print(notification)
}.store(in: &cancellables)
let disConnect = NotificationCenter.default.publisher(for: NSNotification.Name.GCControllerDidDisconnect)
.print()
.subscribe(on:DispatchQueue.global())
.receive(on: DispatchQueue.main)
.sink { value in
print(value)
}.store(in: &cancellables)
I've run into a weird problem trying to use an XBox One Wireless gamepad via the GameController SDK. The controller works fine on two different Macs running Big Sur (and previously worked under Catalina), but is reported as a GCMicroGamepad on an iMac running Mojave.
I can't seem to find a list of devices supported by the GameController framework, but I assumed the XBox One controller was a safe bet. Is this device not supported on the older OS?
Post not yet marked as solved
Is there support for playing custom haptic files to the grips of Sony's DualSense Game Controller?
The video mentions supporting the adaptive triggers on the DualSense. We are not finding a way to reference the haptic actuators in the grips. We'd like to play custom haptic files to them as well as audio to the speaker inside the DualSense.
Searched the WWDC21 content as well as the documentation. Have not found the answer yet.
Thank you!
Post not yet marked as solved
(BOOL)prefersPointerLocked {
return YES;
}
It's works on iPadOS 14.4, but no works on iPhone.
is there any way, to hide the pointer?
Post not yet marked as solved
My new iphone 12 128gb variant is not functioning properly, i experience frame drops while plaing pubg mobile. Is there a way to fix this ?
Post not yet marked as solved
Hi,
when I turn on my mic my speaker volume is low and I cannot hear any game sounds . This happened since I updated to iOS 14 . Can anyone help me with how to solve this issue.
Post not yet marked as solved
Hello!I encountered a problem in my OS X app. I'm using both IOKit HID devices and GameController.framework devices.Problem is, all GCController devices have HID devices, and I didn't find any way of matching them.So, here are questions:1. Is there a way to say "this IOHIDDeviceRef device is MFi controller which would be handled by GameController.framework"?2. This GCController and IOHIDDeviceRef object refer to same physical controller and I can ignore/blacklist one of them in my code to avoid duplicationsN.B.There is [GCController deviceRef] field. In fact it is IOHIDDeviceRef, so I can get their IOHIDDeviceGetService and then IORegistryEntryGetRegistryEntryID to see if they're same connected device.Problem is - deviceRef is a private field. I'm not sure if I can use it when submitting app to App Store