summaryrefslogtreecommitdiff
path: root/arm9/source/devices/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'arm9/source/devices/input.c')
-rw-r--r--arm9/source/devices/input.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arm9/source/devices/input.c b/arm9/source/devices/input.c
index a39f448..e5ac5be 100644
--- a/arm9/source/devices/input.c
+++ b/arm9/source/devices/input.c
@@ -2,6 +2,11 @@
#include "../bang.h"
#include "input.h"
+void inp_receive_byte(InputDevice *inp, u8 byte) {
+ cb_write_byte(&inp->keybuffer, byte);
+ inp->wake = true;
+}
+
// Read gamepad state into an input device.
void inp_read_gamepad(InputDevice *inp) {
u32 held = keysHeld();