summaryrefslogtreecommitdiff
path: root/src/input.c
diff options
context:
space:
mode:
authortheo3 <arisstephenson2@gmail.com>2021-03-21 20:51:08 -0700
committertheo3 <arisstephenson2@gmail.com>2021-03-21 20:51:08 -0700
commitbd50d449de5fc85ecb6f08f27a6ba0a45bfed6ec (patch)
tree9ddee2cf4e5706768d91f8942efc4a65f6e6c72f /src/input.c
parent69edec1eb92ff6e8e3185030dd498579e8b0f382 (diff)
collapse TUs
Diffstat (limited to 'src/input.c')
-rw-r--r--src/input.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/input.c b/src/input.c
deleted file mode 100644
index 6c1179f4..00000000
--- a/src/input.c
+++ /dev/null
@@ -1,27 +0,0 @@
-#include "global.h"
-#include "readKeyInput.h"
-
-static void StoreKeyInput(Input*, u32);
-
-void ReadKeyInput(void) {
- u32 keyInput = ~REG_KEYINPUT & KEYS_MASK;
- StoreKeyInput(&gInput, keyInput);
-}
-
-static void StoreKeyInput(Input* input, u32 keyInput) {
- u32 heldKeys = input->heldKeys;
- u32 difference = keyInput & ~heldKeys;
- input->newKeys = difference;
- if (keyInput == heldKeys) {
- if (--input->unk7 == 0) {
- input->unk7 = 4;
- input->unk4 = keyInput;
- } else {
- input->unk4 = 0;
- }
- } else {
- input->unk7 = 0x14;
- input->unk4 = difference;
- }
- input->heldKeys = keyInput;
-}