We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 27172e1 + 2cdb90e commit f2bd727Copy full SHA for f2bd727
lib/Qor
src/Game.cpp
@@ -693,8 +693,10 @@ void Game :: enter() {
693
void Game :: logic(Freq::Time t) {
694
Actuation::logic(t);
695
696
- if (m_pInput->key(SDLK_ESCAPE))
697
- m_pQor->quit();
+ if (m_pInput->key(SDLK_ESCAPE).pressed_now()){
+ m_pQor->change_state("intro");
698
+ return;
699
+ }
700
701
m_pRoot->logic(t);
702
m_pOrthoRoot->logic(t);
src/Intro.cpp
@@ -209,7 +209,7 @@ void Intro :: enter() {
209
210
211
void Intro :: logic(Freq::Time t) {
212
- if(m_pInput->key(SDLK_ESCAPE))
+ if(m_pInput->key(SDLK_ESCAPE).pressed_now())
213
m_pQor->quit();
214
215
0 commit comments