|
PebbleOS
|
Data Structures | |
| struct | TouchWakeGateResult |
| Outcome of the session gate decision made on a Touchdown. More... | |
Enumerations | |
| enum | TouchState { TouchState_FingerUp , TouchState_FingerDown } |
| Finger state reported by the touch driver. More... | |
| enum | TouchGesture { TouchGesture_Tap , TouchGesture_DoubleTap , TouchGesture_Palm } |
| Gesture reported by the touch driver. More... | |
| enum | TouchInjectPhase { TouchInjectPhase_Begin , TouchInjectPhase_Move , TouchInjectPhase_End } |
| Phase of an injected gesture. More... | |
Functions | |
| void | touch_init (void) |
| Initialize the service and register the touch and gesture event types. | |
| void | touch_set_backlight_enabled (bool enabled) |
| Enable or disable the kernel touch subscription used by the touch backlight feature. | |
| void | touch_set_system_hold (bool held) |
| Hold the sensor powered for system touch navigation. | |
| bool | touch_nav_enabled (void) |
| Check whether system touch navigation is enabled. | |
| void | touch_set_nav_enabled (bool enabled) |
| Set the system navigation gate. | |
| bool | touch_app_nav_active (void) |
| Check whether the app navigation dispatcher is installed for the running app. | |
| void | touch_set_app_nav_active (bool active) |
| Mark whether the app navigation dispatcher is installed. | |
| bool | touch_has_app_subscribers (void) |
| Check for explicit raw touch subscriptions. | |
| void | touch_service_set_globally_enabled (bool enabled) |
| Globally enable or disable touch. | |
| bool | touch_service_is_globally_enabled (void) |
| Get the global touch enable flag. | |
| void | touch_handle_update (TouchState touch_state, int16_t x, int16_t y) |
| Pass a touch sample to the service. | |
| void | touch_handle_gesture (TouchGesture gesture, int16_t x, int16_t y) |
| Pass a gesture to the service. | |
| void | touch_reset (void) |
| Reset the touch state. | |
| void | touch_release_active (void) |
| End an in-progress touch with a synthetic Liftoff. | |
| void | touch_wake_gate_stamp (TouchEvent *event, TouchWakeGateResult gate) |
Stamp non_navigational onto a touch event. | |
| void | touch_set_rotated (bool rotated) |
| Set whether the display is rotated by 180 degrees (left-hand mode). | |
| bool | touch_handle_injected_update (TouchInjectPhase phase, int16_t x, int16_t y) |
| Inject a synthetic touch sample. | |
| bool | touch_injection_is_available (void) |
| Check whether a new injected gesture would be accepted. | |