projects
/
ld45_start_nothing
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
input sortof-works
[ld45_start_nothing]
/
src
/
keyb.inc
diff --git
a/src/keyb.inc
b/src/keyb.inc
index
c022e43
..
6ecb5d9
100644
(file)
--- a/
src/keyb.inc
+++ b/
src/keyb.inc
@@
-2,3
+2,18
@@
extern kb_init
extern keystate
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