diff options
-rw-r--r-- | backends/platform/PalmOS/Src/native/oscalls.cpp | 20 | ||||
-rw-r--r-- | backends/platform/PalmOS/Src/native/oscalls.h | 14 |
2 files changed, 28 insertions, 6 deletions
diff --git a/backends/platform/PalmOS/Src/native/oscalls.cpp b/backends/platform/PalmOS/Src/native/oscalls.cpp index 4520d81c20..403eec40ab 100644 --- a/backends/platform/PalmOS/Src/native/oscalls.cpp +++ b/backends/platform/PalmOS/Src/native/oscalls.cpp @@ -29,19 +29,33 @@ GlobalsType global; PACE_CLASS_WRAPPER(Err) - StatShow_68k(void) { + __68k_StatShow(void) { PACE_PIN_EXEC_NP(pinStatShow, Err) } PACE_CLASS_WRAPPER(Err) - StatHide_68k(void) { + __68k_StatHide(void) { PACE_PIN_EXEC_NP(pinStatHide, Err) } PACE_CLASS_WRAPPER(Err) - PINSetInputAreaState_68k(UInt16 state) { + __68k_PINSetInputAreaState(UInt16 state) { PACE_PARAMS_INIT() PACE_PARAMS_ADD16(state) PACE_PARAMS_END() PACE_PIN_EXEC(pinPINSetInputAreaState, Err) } + +PACE_CLASS_WRAPPER(Err) + __68k_SysSetOrientation(UInt16 orientation) { + PACE_PARAMS_INIT() + PACE_PARAMS_ADD16(orientation) + PACE_PARAMS_END() + PACE_PIN_EXEC(pinSysSetOrientation, Err) +} + +PACE_CLASS_WRAPPER(UInt16) + __68k_SysGetOrientation(void) { + PACE_PIN_EXEC_NP(pinSysGetOrientation, UInt16) +} + diff --git a/backends/platform/PalmOS/Src/native/oscalls.h b/backends/platform/PalmOS/Src/native/oscalls.h index ae8f989337..0fb030b64a 100644 --- a/backends/platform/PalmOS/Src/native/oscalls.h +++ b/backends/platform/PalmOS/Src/native/oscalls.h @@ -29,9 +29,17 @@ extern "C" { #endif -Err StatShow_68k(); -Err StatHide_68k(); -Err PINSetInputAreaState_68k(UInt16 state); +#ifdef PALMOS_ARM +# define __68K(a) __68k_##a +#else +# define __68K(a) a +#endif + +Err __68k_StatShow(); +Err __68k_StatHide(); +Err __68k_PINSetInputAreaState(UInt16 state); +Err __68k_SysSetOrientation(UInt16 orientation); +UInt16 __68k_SysGetOrientation(void); #ifdef __cplusplus } |