input system rework

This commit is contained in:
veclavtalica
2025-02-04 07:32:25 +03:00
parent 4efe80bb5a
commit 02b5ac4cc3
27 changed files with 293 additions and 786 deletions

View File

@@ -1,16 +1,14 @@
#ifndef TWN_INPUT_H
#define TWN_INPUT_H
#include "twn_types.h"
#include "twn_engine_api.h"
#include "twn_control.h"
#include "twn_types.h"
#include <stdint.h>
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
TWN_API void input_action(const char *name, Control control);
TWN_API void input_action(const char *name, const char *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);