~jb55/polyadvent

300dc30430649b637e9c8def0cc5efe897c98be0 — William Casarin 1 year, 7 months ago 9b033fe
set modstate on keyup

Signed-off-by: William Casarin <jb55@jb55.com>
1 files changed, 1 insertions(+), 0 deletions(-)

M src/input.c
M src/input.c => src/input.c +1 -0
@@ 20,6 20,7 @@ static void key_down(struct input *input, int scancode, u64 current_frame) {
}

static void key_up(struct input *input, int scancode, u64 current_frame) {
    input->modifiers = SDL_GetModState();
    struct input_edge *edge = &input->key_edge_states[scancode];

    edge->up_frame = current_frame;