PebbleOS
Loading...
Searching...
No Matches
Functions
Touch navigation

Enabling and disabling system touch navigation. More...

Functions

void touch_nav_set_enabled (bool enable)
 Run the touch navigation enable or disable transaction.
 
void touch_nav_master_changed (void)
 Notify that the master "Touch" pref changed without changing the effective state.
 

Detailed Description

Enabling and disabling system touch navigation.

Function Documentation

◆ touch_nav_master_changed()

void touch_nav_master_changed ( void  )

Notify that the master "Touch" pref changed without changing the effective state.

Called when the "Touch Navigation" sub-pref is off. Re-evaluates the running app, since an app that opted in follows the master pref alone.

◆ touch_nav_set_enabled()

void touch_nav_set_enabled ( bool  enable)

Run the touch navigation enable or disable transaction.

Coordinates the kernel and app navigation dispatchers and the system sensor hold in the order required by touch_nav_transaction_apply(), and subscribes an already running app when enabling. The pref is persisted by the shell before this is called; this flips the runtime gate and updates the subscriptions and hold.

Parameters
enabletrue to turn touch navigation on, false to turn it off.