You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
android/input: Implement comprehensive S Pen support with dual interaction modes
Complete Samsung S Pen implementation addressing phantom hover clicks and
enabling proper menu interaction with two distinct modes:
**Core Features:**
* Phantom hover click prevention using multi-layer protection
* Two-mode interaction system:
- Contact Mode: Require physical tip contact for clicks/drags
- Hover Mode: Side button + hover for air clicking and dragging
* Comprehensive button support (PRIMARY + SECONDARY)
* Proper RETRO_DEVICE_POINTER routing for menu compatibility
**Technical Implementation:**
* Multi-layer hover guard system (100ms window, 12px spatial tolerance)
* Stateful side button tracking for proper drag operations
* ToolType classification with fallback support
* Proximity tracking with nanosecond precision
* Settings-controlled behavior with backward compatibility
**Device Compatibility:**
* Samsung Galaxy Note series (all generations)
* Galaxy Tab S series with S Pen
* Galaxy Z Fold series with S Pen support
* Broader stylus device support via dual button detection
**Testing Verified:**
* Hover navigation without phantom clicks ✓
* Contact-based interaction ✓
* Side button hover clicking ✓
* Side button hover dragging ✓
* Menu interaction and drag operations ✓
Resolves long-standing S Pen usability issues while maintaining full
backward compatibility and user choice between interaction modes.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
0 commit comments