From 0d9978228b9226d16ba8272a03dd7e6c9ad83b3d Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Mon, 16 Dec 2024 14:52:54 +1300 Subject: Implement a toggleable keyboard on the lower screen --- arm9/source/devices/input.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'arm9/source/devices/input.c') 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(); -- cgit v1.2.3-70-g09d2