input sortof-works
[ld45_start_nothing] / src / keyb.inc
index c022e43..6ecb5d9 100644 (file)
@@ -2,3 +2,18 @@
 
        extern kb_init
        extern keystate
+
+SC_ESC equ 1
+SC_W   equ 17
+SC_ENTER equ 28
+SC_A   equ 30
+SC_S   equ 31
+SC_D   equ 32
+SC_SPACE equ 57
+
+       ; carry set if key is pressed
+%macro check_key 1
+       mov ebx, keystate + %1
+       mov al, [ebx]
+       add al, 0xff
+%endmacro