aboutsummaryrefslogtreecommitdiff
path: root/headers
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-06-06 00:39:18 +0200
committerkdx <kikoodx@paranoici.org>2023-06-06 00:39:18 +0200
commit9d111b8b3a03513bfb15349036c9a9e3465bc865 (patch)
treef6d68ab1b76483e7094238d4c2a03dc940a09b98 /headers
parent70b965771d71876d63c3e760aadf23188a3942e3 (diff)
downloadtzr-9d111b8b3a03513bfb15349036c9a9e3465bc865.tar.gz
complete mouse API
Diffstat (limited to 'headers')
-rw-r--r--headers/TZR_mouse.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/headers/TZR_mouse.h b/headers/TZR_mouse.h
index bca21a3..517c34f 100644
--- a/headers/TZR_mouse.h
+++ b/headers/TZR_mouse.h
@@ -1,3 +1,11 @@
#pragma once
+#include "TZR_types.h"
+/* `x` and `y` are out values and nullable. */
void TZR_MouseGetPosition(int *x, int *y);
+
+TZR_KeyState TZR_MouseGetState(uint8_t button);
+bool TZR_MouseDown(uint8_t button);
+bool TZR_MouseUp(uint8_t button);
+bool TZR_MouseReleased(uint8_t button);
+bool TZR_MousePressed(uint8_t button);