townengine/include/twn_input.h

20 lines
475 B
C
Raw Normal View History

#ifndef TWN_INPUT_H
#define TWN_INPUT_H
2024-07-08 00:44:20 +00:00
#include "twn_types.h"
#include "twn_engine_api.h"
#include "twn_control.h"
2024-07-08 00:44:20 +00:00
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
2024-07-08 00:44:20 +00:00
TWN_API void input_action(const char *name, Control control);
TWN_API bool input_action_pressed(const char *name);
TWN_API bool input_action_just_pressed(const char *name);
TWN_API bool input_action_just_released(const char *name);
TWN_API Vec2 input_action_position(const char *name);
2024-07-08 00:44:20 +00:00
#endif