fix pollevent
This commit is contained in:
parent
f4ad8a71bb
commit
e097d0de73
10
inc/lzy.h
10
inc/lzy.h
|
@ -394,6 +394,8 @@ int LZY_PollEvent(LZY_Event *e) {
|
|||
e->type = LZY_KEYUP;
|
||||
e->u.key.scancode = gk_e.key;
|
||||
return 1;
|
||||
default:
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -815,7 +817,8 @@ int LZY_PollEvent(LZY_Event *e) {
|
|||
}
|
||||
}
|
||||
}
|
||||
} break;
|
||||
return -1;
|
||||
}
|
||||
case SDL_KEYUP: {
|
||||
int i = LZYK_COUNT;
|
||||
while (i-- > 0) {
|
||||
|
@ -826,7 +829,10 @@ int LZY_PollEvent(LZY_Event *e) {
|
|||
return 1;
|
||||
}
|
||||
}
|
||||
} break;
|
||||
return -1;
|
||||
}
|
||||
default:
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue