mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-18 21:31:16 +00:00
Add SDL_EVENT_QUIT
This commit is contained in:
parent
ce551deb46
commit
515cc584fd
@ -862,8 +862,8 @@ void CMainDialog::PollInputs()
|
|||||||
{
|
{
|
||||||
SDL_Event event;
|
SDL_Event event;
|
||||||
while (SDL_PollEvent(&event)) {
|
while (SDL_PollEvent(&event)) {
|
||||||
if (event.type == SDL_EVENT_KEY_DOWN) {
|
if (event.type == SDL_EVENT_KEY_DOWN || event.type == SDL_EVENT_QUIT) {
|
||||||
if (event.key.scancode != SDL_SCANCODE_ESCAPE) {
|
if (event.type == SDL_EVENT_KEY_DOWN && event.key.scancode != SDL_SCANCODE_ESCAPE) {
|
||||||
SDL_Scancode sc = event.key.scancode;
|
SDL_Scancode sc = event.key.scancode;
|
||||||
*m_currentKeyBind = sc;
|
*m_currentKeyBind = sc;
|
||||||
m_modified = true;
|
m_modified = true;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user