We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7131af0 commit 72e5632Copy full SHA for 72e5632
2 files changed
src/RenderLoop.cpp
@@ -404,7 +404,10 @@ void RenderLoop::MouseDownEvent(const SDL_MouseButtonEvent& event)
404
break;
405
406
case SDL_BUTTON_RIGHT:
407
- _sdlRenderingWindow.ToggleFullscreen();
+ if (!_keyStates.AnyPressed())
408
+ {
409
+ _sdlRenderingWindow.ToggleFullscreen();
410
+ }
411
412
413
case SDL_BUTTON_MIDDLE:
src/RenderLoop.h
@@ -21,6 +21,11 @@ class RenderLoop
21
22
protected:
23
struct ModifierKeyStates {
24
+ bool AnyPressed() const
25
26
+ return _shiftPressed || _ctrlPressed || _altPressed || _metaPressed;
27
28
+
29
bool _shiftPressed{false}; //!< L/R shift keys
30
bool _ctrlPressed{false}; //!< L/R control keys
31
bool _altPressed{false}; //!< L/R alt keys
0 commit comments