i_input_map.inputs[I_INPUT_ACTION_CURSOR_ACTION].held = 0;
}
+
+lrts_bool i_input_just_pressed(enum i_input_actions action) {
+ LRTS_UNUSED(action);
+ return LRTS_FALSE;
+}
+
+lrts_bool i_input_held(enum i_input_actions action) {
+ LRTS_UNUSED(action);
+ return LRTS_FALSE;
+}
+
+lrts_bool i_input_double_press(enum i_input_actions action) {
+ LRTS_UNUSED(action);
+ return LRTS_FALSE;
+}
+
void i_input_poll(void) {
p_poll_events();
i_input_update();
void i_input_cursor_drag_unset(void);
void i_input_cursor_action_unset(void);
+/* returns true if this action was just performed this frame */
+lrts_bool i_input_just_pressed(enum i_input_actions action);
+
+/* returns true if this action is held for more than 1 frame */
+lrts_bool i_input_held(enum i_input_actions action);
+
+/* returns true if the action was clicked twice within a
+ * delay window causing a double click */
+lrts_bool i_input_double_press(enum i_input_actions action);
+
/* polls input from system backend
* and translates the input to commands
*/