Fixed random bug, spacebar should not be confirm.
This commit is contained in:
@@ -86,7 +86,7 @@ poll_input :: proc() -> Input_Event {
|
|||||||
input_event.right_pressed = rl.IsKeyPressed(.D) || rl.IsKeyPressed(.RIGHT) ||
|
input_event.right_pressed = rl.IsKeyPressed(.D) || rl.IsKeyPressed(.RIGHT) ||
|
||||||
(gamepad_active && rl.IsGamepadButtonPressed(gid, .LEFT_FACE_RIGHT))
|
(gamepad_active && rl.IsGamepadButtonPressed(gid, .LEFT_FACE_RIGHT))
|
||||||
|
|
||||||
input_event.confirm_pressed = rl.IsKeyPressed(.ENTER) || rl.IsKeyPressed(.SPACE) ||
|
input_event.confirm_pressed = rl.IsKeyPressed(.ENTER) ||
|
||||||
(gamepad_active && rl.IsGamepadButtonPressed(gid, .RIGHT_FACE_DOWN))
|
(gamepad_active && rl.IsGamepadButtonPressed(gid, .RIGHT_FACE_DOWN))
|
||||||
|
|
||||||
input_event.pause_pressed = rl.IsKeyPressed(.SPACE) ||
|
input_event.pause_pressed = rl.IsKeyPressed(.SPACE) ||
|
||||||
|
|||||||
Reference in New Issue
Block a user