Skip to content

Add device haptics as rumble and gyro support#706

Open
cuza wants to merge 2 commits intomoonlight-stream:masterfrom
cuza:device-haptics-and-gyro
Open

Add device haptics as rumble and gyro support#706
cuza wants to merge 2 commits intomoonlight-stream:masterfrom
cuza:device-haptics-and-gyro

Conversation

@cuza
Copy link
Copy Markdown

@cuza cuza commented Apr 19, 2026

This PR adds support for device haptics as force feedback (rumble) and also sends controller gyro from device gyro and accelerometer.

Main changes:

  • Added deviceHaptics and deviceGyroMode to TemporarySettings
  • Persisted both settings through NSUserDefaults / DataManager
  • Added settings UI for haptics and gyro in SettingsViewController
  • Only enables those controls when the current device supports them

It also updates HapticContext so it can handle device haptics in addition to controller haptics, and improves logging so it’s easier to tell which path is being used.

Other small changes:

  • Added a DeviceGyroMode enum
  • Updated Info.plist to include UIDesignRequiresCompatibility and prevent Liquid Glass rendering on iOS 18+

cuza added 2 commits April 17, 2026 01:22
- Introduced new segmented controls for enabling/disabling device haptics and motion gyro in SettingsViewController.
- Implemented methods to check device capabilities for haptics and gyro support.
- Updated HapticContext to support device haptics, including a new context creation method.
- Enhanced logging to provide clearer feedback on haptic operations.
- Updated storyboard files for iPad and iPhone to include new UI elements for haptics and gyro settings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant