aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-10-02 18:09:52 +1000
committerquou <quou@disroot.org>2024-10-02 18:09:52 +1000
commit911f57c63ec6de6fb5704c97130b65e676b2c16e (patch)
tree10e2327a59b441ec63f4c6c155816dee9c3e93d5
parentea54147679e8a345d4d23f0044df1842a3a49dac (diff)
special button
-rw-r--r--plat.c1
-rw-r--r--plat.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/plat.c b/plat.c
index ef84eda..6669c12 100644
--- a/plat.c
+++ b/plat.c
@@ -326,6 +326,7 @@ Btn btn_from_xkey(unsigned key) {
case XK_Right: return btn_right;
case 0x78: return btn_shoot;
case 0x7a: return btn_jump;
+ case 0x63: return btn_special;
case XK_Return: return btn_start;
default: return btn_unknown;
}
diff --git a/plat.h b/plat.h
index 687106d..d684f97 100644
--- a/plat.h
+++ b/plat.h
@@ -53,6 +53,7 @@ typedef enum {
btn_down,
btn_shoot,
btn_jump,
+ btn_special,
btn_start,
btn_count
} Btn;