From 26a6a3288c51ab9d9726a4ac38731babeca0bcce Mon Sep 17 00:00:00 2001 From: Ry Date: Wed, 22 Nov 2023 22:04:23 -0800 Subject: [PATCH] Add event types and ScancodeToAscii to the Okameron defs --- fox32rom.def.okm | 11 +++++++++++ fox32rom_okm.asm | 4 ++++ 2 files changed, 15 insertions(+) diff --git a/fox32rom.def.okm b/fox32rom.def.okm index 380682e..6e09922 100644 --- a/fox32rom.def.okm +++ b/fox32rom.def.okm @@ -11,8 +11,19 @@ MODULE Fox32ROM; reserved: CHAR; END; + EXTERN EVENT_TYPE_MOUSE_CLICK: INT; + EVENT_TYPE_MOUSE_RELEASE: INT; + EVENT_TYPE_KEY_DOWN: INT; + EVENT_TYPE_KEY_UP: INT; + EVENT_TYPE_MENU_BAR_CLICK: INT; + EVENT_TYPE_MENU_UPDATE: INT; + EVENT_TYPE_MENU_CLICK: INT; + EVENT_TYPE_MENU_ACK: INT; + EVENT_TYPE_EMPTY: INT; + EXTERN PROCEDURE NewEvent: INT; EXTERN PROCEDURE GetNextEvent: INT; + EXTERN PROCEDURE ScancodeToAscii: INT; EXTERN PROCEDURE FillBackground: INT; EXTERN PROCEDURE DrawStrToBackground: INT; diff --git a/fox32rom_okm.asm b/fox32rom_okm.asm index ce8350c..9f9c008 100644 --- a/fox32rom_okm.asm +++ b/fox32rom_okm.asm @@ -40,6 +40,10 @@ GetNextEvent: pop r8 ret +; PROCEDURE ScancodeToAscii(scancode: CHAR): CHAR; +ScancodeToAscii: + jmp scancode_to_ascii + ; PROCEDURE FillBackground(color: INT;); FillBackground: jmp fill_background