mirror of
https://github.com/st3fan/ewm.git
synced 2024-05-28 17:41:35 +00:00
parent
a1536aa351
commit
7acae93861
|
@ -390,9 +390,7 @@ static bool ewm_two_poll_event(struct ewm_two_t *two, SDL_Window *window) { // T
|
||||||
case SDL_KEYDOWN:
|
case SDL_KEYDOWN:
|
||||||
if (event.key.keysym.mod & KMOD_CTRL) {
|
if (event.key.keysym.mod & KMOD_CTRL) {
|
||||||
if (event.key.keysym.sym >= SDLK_a && event.key.keysym.sym <= SDLK_z) {
|
if (event.key.keysym.sym >= SDLK_a && event.key.keysym.sym <= SDLK_z) {
|
||||||
two->key = (event.key.keysym.sym - SDLK_a) | 0x80;
|
two->key = (event.key.keysym.sym - SDLK_a + 1) | 0x80;
|
||||||
} else {
|
|
||||||
// TODO Implement control codes 1b - 1f
|
|
||||||
}
|
}
|
||||||
} else if (event.key.keysym.mod & KMOD_GUI) {
|
} else if (event.key.keysym.mod & KMOD_GUI) {
|
||||||
switch (event.key.keysym.sym) {
|
switch (event.key.keysym.sym) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user