summaryrefslogtreecommitdiff
path: root/arm9/source/devices/input.h
diff options
context:
space:
mode:
authorBen Bridle <ben@derelict.engineering>2024-11-18 14:57:19 +1300
committerBen Bridle <ben@derelict.engineering>2024-11-18 14:57:19 +1300
commit722d5509178fa5bdaa488fbbd9196f21377f8775 (patch)
tree112b39cd80cb8e074d9e71d1def4d8de33c9eefa /arm9/source/devices/input.h
downloadbedrock-nds-722d5509178fa5bdaa488fbbd9196f21377f8775.zip
Initial commit
Diffstat (limited to 'arm9/source/devices/input.h')
-rw-r--r--arm9/source/devices/input.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/arm9/source/devices/input.h b/arm9/source/devices/input.h
new file mode 100644
index 0000000..e62bdd3
--- /dev/null
+++ b/arm9/source/devices/input.h
@@ -0,0 +1,16 @@
+#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
+ } InputDevice;
+
+ void inp_read_gamepad(InputDevice *inp);
+ void inp_read_navigation(InputDevice *inp);
+ void inp_read_touch(InputDevice *inp);
+#endif