Dev.to
7/12/2026

Motion, Stylus, Trackpads And Foldables In The Core
Short summary
Codename One's latest PRs expose motion sensors, advanced pointer events, and wheel/trackpad gestures through core APIs instead of platform-specific libraries. The new sensors package covers accelerometer, gyroscope, and magnetometer with derived gravity and orientation. PointerEvent adds pressure, stylus, and button detection while WheelEvent unifies scroll gestures across mouse, trackpad, and Digital Crown.
- •New MotionSensorManager exposes accelerometer, gyroscope, magnetometer in core
- •PointerEvent adds pressure, stylus type, button, and hover detection
- •WheelEvent unifies mouse wheel, trackpad, and Digital Crown scroll handling
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



