From 1e039c310beefa21aa7f957b4548955074ea9c0e Mon Sep 17 00:00:00 2001 From: Sara Date: Wed, 25 Oct 2023 23:24:44 +0200 Subject: [PATCH] negative key for a key action will now be bound to unknown scancode --- src/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input.c b/src/input.c index ccfcffc..e9694b6 100644 --- a/src/input.c +++ b/src/input.c @@ -88,7 +88,7 @@ void input_add_axis_action(SDL_Scancode negative, SDL_Scancode positive, InputAc void input_add_key_action(SDL_Scancode key, InputActionDelegate delegate) { _resize_actions_if_needed(_actions_len + 1); _actions[_actions_len] = (InputAction) { - .negative = NULL, + .negative = _keys + SDL_SCANCODE_UNKNOWN, .positive = _keys + key, .delegate = delegate };