| 943 | auto Sorcery::Controller::check_for_back(const SDL_Event event) -> bool { |
| 944 | |
| 945 | if (event.type == SDL_KEYDOWN && |
| 946 | event.key.keysym.scancode == SDL_SCANCODE_ESCAPE) |
| 947 | return true; |
| 948 | else if (event.type == SDL_MOUSEBUTTONDOWN && |
| 949 | event.button.button == SDL_BUTTON_RIGHT) |
| 950 | return true; |
| 951 |