Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Haptic feedback iOS & macOS #93

Open
izzyreal opened this issue Jul 6, 2023 · 0 comments
Open

Haptic feedback iOS & macOS #93

izzyreal opened this issue Jul 6, 2023 · 0 comments

Comments

@izzyreal
Copy link
Owner

izzyreal commented Jul 6, 2023

Provide haptic feedback where cool: buttons, datawheel, pads. See ButtonControl, DataWheelControl and PadControl for places to trigger haptic feedback.

JUCE has no support for this as far as I can see, so we'll need to hack in some Obj-C++ .mm and C++ .h. See https://github.com/izzyreal/vmpc-juce/blob/master/src/main/gui/IosDocumentBrowser.h and https://github.com/izzyreal/vmpc-juce/blob/master/src/main/gui/IosDocumentBrowser.mm for an example.

See https://developer.apple.com/documentation/uikit/uifeedbackgenerator?language=objc for iOS and https://developer.apple.com/documentation/appkit/nshapticfeedbackmanager?language=objc for macOS native APIs.

Also keep in mind we'll need to set permissions in the plist. Not sure yet how exactly, but maybe like this: https://github.com/izzyreal/vmpc-teamcity-config/blob/d2b921a1afe7340abde42a390b4b48d394c84e83/.teamcity/settings.kts#L645

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

No branches or pull requests

1 participant