mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 12:31:15 +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;
|
||||
while (SDL_PollEvent(&event)) {
|
||||
if (event.type == SDL_EVENT_KEY_DOWN) {
|
||||
if (event.key.scancode != SDL_SCANCODE_ESCAPE) {
|
||||
if (event.type == SDL_EVENT_KEY_DOWN || event.type == SDL_EVENT_QUIT) {
|
||||
if (event.type == SDL_EVENT_KEY_DOWN && event.key.scancode != SDL_SCANCODE_ESCAPE) {
|
||||
SDL_Scancode sc = event.key.scancode;
|
||||
*m_currentKeyBind = sc;
|
||||
m_modified = true;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user