From 4d7f64e37fba050e437caff204c88cf4ec9a8697 Mon Sep 17 00:00:00 2001 From: Chris Apers Date: Sat, 1 Sep 2007 17:47:48 +0000 Subject: Prevent orientation change svn-id: r28796 --- backends/platform/PalmOS/Src/native/oscalls.cpp | 12 ++++++++++++ backends/platform/PalmOS/Src/native/oscalls.h | 2 ++ 2 files changed, 14 insertions(+) (limited to 'backends/platform/PalmOS/Src/native') 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 } -- cgit v1.2.3