PebbleOS
Loading...
Searching...
No Matches
Functions
Orientation manager

Rotate display and input devices to match the display orientation preference. More...

Functions

void orientation_handle_prefs_changed (void)
 Apply the orientation preference after it changed.
 
void orientation_manager_enable (bool on)
 Runlevel hook.
 

Detailed Description

Rotate display and input devices to match the display orientation preference.

Applies the orientation to the display, buttons, accelerometer, magnetometer and touch. Available with CONFIG_ORIENTATION_MANAGER.

Function Documentation

◆ orientation_handle_prefs_changed()

void orientation_handle_prefs_changed ( void  )

Apply the orientation preference after it changed.

Also asks the running app to redraw.

◆ orientation_manager_enable()

void orientation_manager_enable ( bool  on)

Runlevel hook.

Parameters
onTrue to apply the orientation preference, false to force the default orientation.