From 0d9978228b9226d16ba8272a03dd7e6c9ad83b3d Mon Sep 17 00:00:00 2001 From: Ben Bridle <ben@derelict.engineering> Date: Mon, 16 Dec 2024 14:52:54 +1300 Subject: Implement a toggleable keyboard on the lower screen --- arm9/source/devices/input.h | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'arm9/source/devices/input.h') diff --git a/arm9/source/devices/input.h b/arm9/source/devices/input.h index e62bdd3..4f91ed5 100644 --- a/arm9/source/devices/input.h +++ b/arm9/source/devices/input.h @@ -1,15 +1,20 @@ +#include <nds.h> +#include "../types/circbuf.h" + #ifndef INPUT_H_ #define INPUT_H_ typedef struct { - bool pointer; // pointer active - bool keyboard; // keyboard active - u16 x,y; // pointer position - u8 navigation; // navigation state - u8 gamepad; // gamepad state - bool wake; // wake flag + bool pointer; // pointer active + bool keyboard; // keyboard active + CircBuf keybuffer; // queued keypresses + u16 x,y; // pointer position + u8 navigation; // navigation state + u8 gamepad; // gamepad state + bool wake; // wake flag } InputDevice; + void inp_receive_byte(InputDevice *inp, u8 byte); void inp_read_gamepad(InputDevice *inp); void inp_read_navigation(InputDevice *inp); void inp_read_touch(InputDevice *inp); -- cgit v1.2.3-70-g09d2