mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-06 13:57:55 +03:00
Terminate flag shouldn't get cleared
This commit is contained in:
@@ -22,7 +22,8 @@ uint8 NACT::get_key()
|
||||
{
|
||||
uint8 val = 0;
|
||||
|
||||
terminate = pump_events();
|
||||
if (pump_events())
|
||||
terminate = true;
|
||||
|
||||
// キーボード&マウス
|
||||
const Uint8* key = SDL_GetKeyboardState(NULL);
|
||||
@@ -60,7 +61,8 @@ uint8 NACT::get_key()
|
||||
|
||||
void NACT::get_cursor(int* x, int* y)
|
||||
{
|
||||
terminate = pump_events();
|
||||
if (pump_events())
|
||||
terminate = true;
|
||||
SDL_GetMouseState(x, y);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user