diff options
author | Chris Apers | 2007-09-01 17:47:48 +0000 |
---|---|---|
committer | Chris Apers | 2007-09-01 17:47:48 +0000 |
commit | 4d7f64e37fba050e437caff204c88cf4ec9a8697 (patch) | |
tree | 82e8a212c71af346ae44b2f9ce2e8dd9e73fb85e /backends/platform/PalmOS/Src/native | |
parent | c499dca50382b859d265219db193dcf6d2e60c03 (diff) | |
download | scummvm-rg350-4d7f64e37fba050e437caff204c88cf4ec9a8697.tar.gz scummvm-rg350-4d7f64e37fba050e437caff204c88cf4ec9a8697.tar.bz2 scummvm-rg350-4d7f64e37fba050e437caff204c88cf4ec9a8697.zip |
Prevent orientation change
svn-id: r28796
Diffstat (limited to 'backends/platform/PalmOS/Src/native')
-rw-r--r-- | backends/platform/PalmOS/Src/native/oscalls.cpp | 12 | ||||
-rw-r--r-- | backends/platform/PalmOS/Src/native/oscalls.h | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/backends/platform/PalmOS/Src/native/oscalls.cpp b/backends/platform/PalmOS/Src/native/oscalls.cpp index f15a1ef781..68cfb0eef5 100644 --- a/backends/platform/PalmOS/Src/native/oscalls.cpp +++ b/backends/platform/PalmOS/Src/native/oscalls.cpp @@ -60,3 +60,15 @@ PACE_CLASS_WRAPPER(UInt16) PACE_PIN_EXEC_NP(pinSysGetOrientation, UInt16) } +PACE_CLASS_WRAPPER(Err) + __68k_SysSetOrientationTriggerState(UInt16 triggerState) { + PACE_PARAMS_INIT() + PACE_PARAMS_ADD16(triggerState) + PACE_PARAMS_END() + PACE_PIN_EXEC(pinSysSetOrientationTriggerState, Err) +} + +PACE_CLASS_WRAPPER(UInt16) + __68k_SysGetOrientationTriggerState(void) { + PACE_PIN_EXEC_NP(pinSysGetOrientationTriggerState, UInt16) +} diff --git a/backends/platform/PalmOS/Src/native/oscalls.h b/backends/platform/PalmOS/Src/native/oscalls.h index cc35eeaf28..2b4b93488f 100644 --- a/backends/platform/PalmOS/Src/native/oscalls.h +++ b/backends/platform/PalmOS/Src/native/oscalls.h @@ -41,6 +41,8 @@ Err __68k_StatHide(); Err __68k_PINSetInputAreaState(UInt16 state); Err __68k_SysSetOrientation(UInt16 orientation); UInt16 __68k_SysGetOrientation(void); +Err __68k_SysSetOrientationTriggerState(UInt16 triggerState); +UInt16 __68k_SysGetOrientationTriggerState(void); #ifdef __cplusplus } |