Add event types and ScancodeToAscii to the Okameron defs

This commit is contained in:
Ry 2023-11-22 22:04:23 -08:00
parent 28f28badaa
commit 26a6a3288c
2 changed files with 15 additions and 0 deletions

View File

@ -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;

View File

@ -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