diff options
Diffstat (limited to 'src/gui/gui.h')
-rw-r--r-- | src/gui/gui.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/gui.h b/src/gui/gui.h index f7c913752..8805f2518 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -302,10 +302,10 @@ class Gui final */ void removeGlobalKeyListener(KeyListener *const keyListener); - bool isLongPress() + bool isLongPress() const { return getMousePressLength() > 250; } - int getMousePressLength(); + int getMousePressLength() const; protected: void handleMouseMoved(const MouseInput &mouseInput); @@ -368,7 +368,7 @@ class Gui final * @since 0.6.0 */ - void distributeKeyEvent(KeyEvent& keyEvent); + void distributeKeyEvent(KeyEvent& keyEvent) const; /** * Distributes a key event to the global key listeners. |