[Wear OS] Implementing Rotary Input Support for QML ScrollView
Unsolved
Mobile and Embedded
-
Hi Forum,
I'm developing a Wear OS app using QML and need to implement rotary input support for a scrollable view. I want to handle the rotary events from the physical watch crown according to the Android documentation for rotary input.
Specifically, I'm looking to:
- Implement an onGenericMotion handler in Java
- Connect this handler to my QML layout
- Ensure proper focus handling for the rotary events
Has anyone successfully integrated rotary input with QML views in a Wear OS app? Any examples or guidance would be greatly appreciated.
Technical details:
- Platform: Wear OS
- UI Framework: QML
- Input: Physical rotary/crown input
- Reference: https://developer.android.com/training/wearables/user-input/rotary-input#java
Thanks in advance,
Michael