Commit Graph
10 Commits
Author SHA1 Message Date
Henrik RydgårdandClaude Opus 5.5 cfcf8cc17c iOS: Remove the iCade support
It has done nothing since 2017. iCade input came through iCadeReaderView,
a hidden UIKeyInput view that decoded the controller's keystrokes, and
f0ba66fcd6 ("add support for smart keyboard") commented out the code
that created it. Nothing has made one since, so the view controller's
iCadeEventDelegate methods and the ICadeTracker behind them were never
called.

iCade controllers present themselves to iOS as Bluetooth keyboards, so
their keys still arrive as hardware keyboard presses, which can be
mapped like any other keys. Modern controllers go through
GameController.framework anyway.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 19:10:37 +02:00
Henrik RydgårdandClaude Opus 5.5 b4775cde07 iOS: Fix the safe area inset and touch scaling
The safe area insets were converted to pixels with UIScreen.scale, but
the display size with nativeScale. The two differ on the Plus models
and the minis, so the insets were off by up to 15% there. Both use the
window scene's nativeScale now.

Touch positions were truncated to integers before being multiplied by
the screen scale, putting them on a grid about 3 dp apart. Convert
straight from points to dp, by the view size.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 16:28:27 +02:00
Henrik Rydgård 584d07ea8e iOS: Implement basic physical keyboard support 2024-06-05 23:27:03 +02:00
Henrik Rydgård 338758f430 iOS: Fix "Home" button on controllers (like the PS logo button on a PS4 controller) 2024-06-05 15:01:02 +02:00
Henrik Rydgård 7b3f0aeab2 iOS: Implement accelerometer support 2024-06-04 11:51:09 +02:00
Henrik Rydgård 98e87a78d8 Extract the iCade code to Controls.mm 2024-05-22 12:11:51 +02:00
Henrik Rydgård bf8d55c970 Finish extracting the touch tracker from the ViewController 2024-05-22 11:59:26 +02:00
Henrik Rydgård 1db11599b4 Move some more code 2024-05-22 11:36:52 +02:00
Henrik Rydgård 82573b4f82 Move controller setup to Controls.mm 2024-05-22 11:18:03 +02:00
Henrik Rydgård 09e89e9d79 Minor cleanup 2024-05-22 10:38:40 +02:00