Okay, it was pretty simple. The press handlers for both begin and end should be overridden and handle the input
override func pressesBegan(_ presses: Set<UIPress>, with event: UIPressesEvent?) {
/*
Do nothing, or handle specifically the keys
that should be processed by your app.
super.pressesBegan will forward the key press and result
in the 'beep' sound/
}
override func pressesEnded(_ presses: Set<UIPress>, with event: UIPressesEvent?) {
/*
Do nothing, or handle specifically the keys
that should be processed by your app.
super.pressesEnded will forward the key press and result
in the 'beep' sound/
}
This solves the issue of 'beeps' coming from key presses that I am not currently handling while polling using GCKeyboard - https://developer.apple.com/documentation/gamecontroller/gckeyboard
Post
Replies
Boosts
Views
Activity
The issue has not been fixed as of Xcode 15.4 and macOS 14.5
@DTS Engineer I can confirm this is now working as intended with macOS 15 beta 2 and Xcode 16
The following issue can now be closed:
https://feedbackassistant.apple.com/feedback/13495684