summaryrefslogtreecommitdiff
path: root/src/player-input.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/player-input.hpp')
-rw-r--r--src/player-input.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/player-input.hpp b/src/player-input.hpp
index 2e8517c..6145a22 100644
--- a/src/player-input.hpp
+++ b/src/player-input.hpp
@@ -114,6 +114,11 @@ struct pke_input_set {
void pke_input_tick(double delta);
const pke_input_event *pke_input_query_by_action_name(const char *actionName);
+// note: must be called from main thread (per glfw)
+// note: does not return `mods` nor `thisTick`
+// note: only supports keyboard and mouse buttons
+void pke_input_query_by_mask(pke_input_event_mask mask, pke_input_event &ev);
+void pke_input_query_mouse_pos(double &x, double &y);
void pke_input_init();
pke_input_action_set_handle pke_input_register_set(const pke_input_set &set);
void pke_input_activate_set(pke_input_action_set_handle handle);