summaryrefslogtreecommitdiff
path: root/src/SFML/Window/Unix/InputImpl.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/SFML/Window/Unix/InputImpl.hpp')
-rw-r--r--src/SFML/Window/Unix/InputImpl.hpp38
1 files changed, 28 insertions, 10 deletions
diff --git a/src/SFML/Window/Unix/InputImpl.hpp b/src/SFML/Window/Unix/InputImpl.hpp
index 88dcc91..7c95a9c 100644
--- a/src/SFML/Window/Unix/InputImpl.hpp
+++ b/src/SFML/Window/Unix/InputImpl.hpp
@@ -1,7 +1,7 @@
////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
-// Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org)
+// Copyright (C) 2007-2023 Laurent Gomila (laurent@sfml-dev.org)
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any damages arising from the use of this software.
@@ -45,19 +45,37 @@ class InputImpl
public:
////////////////////////////////////////////////////////////
- /// \brief Check if a key is pressed
+ /// \copydoc sf::Keyboard::isKeyPressed(Key)
///
- /// \param key Key to check
+ ////////////////////////////////////////////////////////////
+ static bool isKeyPressed(Keyboard::Key key);
+
+ ////////////////////////////////////////////////////////////
+ /// \copydoc sf::Keyboard::isKeyPressed(Scancode)
///
- /// \return True if the key is pressed, false otherwise
+ ////////////////////////////////////////////////////////////
+ static bool isKeyPressed(Keyboard::Scancode code);
+
+ ////////////////////////////////////////////////////////////
+ /// \copydoc sf::Keyboard::localize
///
////////////////////////////////////////////////////////////
- static bool isKeyPressed(Keyboard::Key key);
+ static Keyboard::Key localize(Keyboard::Scancode code);
////////////////////////////////////////////////////////////
- /// \brief Show or hide the virtual keyboard
+ /// \copydoc sf::Keyboard::delocalize
///
- /// \param visible True to show, false to hide
+ ////////////////////////////////////////////////////////////
+ static Keyboard::Scancode delocalize(Keyboard::Key key);
+
+ ////////////////////////////////////////////////////////////
+ /// \copydoc sf::Keyboard::getDescription
+ ///
+ ////////////////////////////////////////////////////////////
+ static String getDescription(Keyboard::Scancode code);
+
+ ////////////////////////////////////////////////////////////
+ /// \copydoc sf::Keyboard::setVirtualKeyboardVisible
///
////////////////////////////////////////////////////////////
static void setVirtualKeyboardVisible(bool visible);
@@ -95,7 +113,7 @@ public:
/// \return Current position of the mouse
///
////////////////////////////////////////////////////////////
- static Vector2i getMousePosition(const Window& relativeTo);
+ static Vector2i getMousePosition(const WindowBase& relativeTo);
////////////////////////////////////////////////////////////
/// \brief Set the current position of the mouse in desktop coordinates
@@ -120,7 +138,7 @@ public:
/// \param relativeTo Reference window
///
////////////////////////////////////////////////////////////
- static void setMousePosition(const Vector2i& position, const Window& relativeTo);
+ static void setMousePosition(const Vector2i& position, const WindowBase& relativeTo);
////////////////////////////////////////////////////////////
/// \brief Check if a touch event is currently down
@@ -157,7 +175,7 @@ public:
/// \return Current position of \a finger, or undefined if it's not down
///
////////////////////////////////////////////////////////////
- static Vector2i getTouchPosition(unsigned int finger, const Window& relativeTo);
+ static Vector2i getTouchPosition(unsigned int finger, const WindowBase& relativeTo);
};
} // namespace priv