display_get_orientation()

From ENIGMA

Jump to: navigation, search

Description

Gets the current orientation of the display and returns it as a constant.

Parameters

Parameter Description
none this function has no parameters

Return Values

integer: Returns the display constant of the current display orientation.

Example Call

// demonstrates getting the orientation of the display
switch (display_get_orientation()) {
  case display_landscape:
    // display is landscape
    break;
  case display_landscape_flipped:
    // display is horizontally flipped
    break;
}
Personal tools
Namespaces
Variants
Actions
Navigation
ENIGMA
Other
Toolbox