diff options
| author | notyourav <65437533+notyourav@users.noreply.github.com> | 2021-03-21 22:55:31 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-21 22:55:31 -0700 |
| commit | 725efbe2d0b7253ba2a3ee935f830b3bfbe8eb7f (patch) | |
| tree | 269a5ee1b44bb2600a63fbb2e9223a0b997f46f0 /src/input.c | |
| parent | eb1643b9b7b513b74b2fb752c8409f175f14ed73 (diff) | |
| parent | f0d610f385dcbac0973a3c4b2f48621417492b5a (diff) | |
Merge pull request #142 from notyourav/static
TU squashing
Diffstat (limited to 'src/input.c')
| -rw-r--r-- | src/input.c | 27 |
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; -} |
