polyadvent

A game engine from scratch in C
git clone git://jb55.com/polyadvent
Log | Files | Refs | README

commit 300dc30430649b637e9c8def0cc5efe897c98be0
parent 9b033fe1f5d213ec2c17d4f649d9d3a9261e8929
Author: William Casarin <jb55@jb55.com>
Date:   Mon, 27 Apr 2020 02:18:26 -0700

set modstate on keyup

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Msrc/input.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/input.c b/src/input.c @@ -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;