display_get_orientation()

From ENIGMA
Revision as of 17:08, 14 November 2013 by RobertBColton (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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;
}