input system rework
This commit is contained in:
1 parent
4efe80bb5a
commit
02b5ac4cc3
27 files changed
+293
-786
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user