input system rework

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

No files matched your search

+2 -2
View File
@@ -113,8 +113,8 @@ void game_tick(void) {
Vec2 const mouse_snap = {floorf(ctx.mouse_position.x / 8) * 8, floorf(ctx.mouse_position.y / 8) * 8};
input_action("up", CONTROL_LEFT_MOUSE);
input_action("down", CONTROL_RIGHT_MOUSE);
input_action("up", "LCLICK");
input_action("down", "RCLICK");
if (input_action_just_pressed("up"))
state->r += 1;