Implemented missing setVirtualKeyboardVisible method on desktop platforms

This commit is contained in:
Jonathan De Wachter 2013-10-24 13:05:48 +02:00
parent 67177ce55c
commit 77567e9656
7 changed files with 46 additions and 1 deletions

View File

@ -41,7 +41,7 @@ bool Keyboard::isKeyPressed(Key key)
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
void Keyboard::setVirtualKeyboardVisible(bool visible) void Keyboard::setVirtualKeyboardVisible(bool visible)
{ {
return priv::InputImpl::setVirtualKeyboardVisible(visible); priv::InputImpl::setVirtualKeyboardVisible(visible);
} }
} // namespace sf } // namespace sf

View File

@ -55,6 +55,14 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
static bool isKeyPressed(Keyboard::Key key); static bool isKeyPressed(Keyboard::Key key);
////////////////////////////////////////////////////////////
/// \brief Show or hide the virtual keyboard
///
/// \param visible True to show, false to hide
///
////////////////////////////////////////////////////////////
static void setVirtualKeyboardVisible(bool visible);
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Check if a mouse button is pressed /// \brief Check if a mouse button is pressed
/// ///

View File

@ -112,6 +112,13 @@ bool InputImpl::isKeyPressed(Keyboard::Key key)
} }
////////////////////////////////////////////////////////////
void InputImpl::setVirtualKeyboardVisible(bool visible)
{
// Not applicable
}
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
bool InputImpl::isMouseButtonPressed(Mouse::Button button) bool InputImpl::isMouseButtonPressed(Mouse::Button button)
{ {

View File

@ -174,6 +174,13 @@ bool InputImpl::isKeyPressed(Keyboard::Key key)
} }
////////////////////////////////////////////////////////////
void InputImpl::setVirtualKeyboardVisible(bool visible)
{
// Not applicable
}
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
bool InputImpl::isMouseButtonPressed(Mouse::Button button) bool InputImpl::isMouseButtonPressed(Mouse::Button button)
{ {

View File

@ -54,6 +54,14 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
static bool isKeyPressed(Keyboard::Key key); static bool isKeyPressed(Keyboard::Key key);
////////////////////////////////////////////////////////////
/// \brief Show or hide the virtual keyboard
///
/// \param visible True to show, false to hide
///
////////////////////////////////////////////////////////////
static void setVirtualKeyboardVisible(bool visible);
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Check if a mouse button is pressed /// \brief Check if a mouse button is pressed
/// ///

View File

@ -156,6 +156,13 @@ bool InputImpl::isKeyPressed(Keyboard::Key key)
} }
////////////////////////////////////////////////////////////
void InputImpl::setVirtualKeyboardVisible(bool visible)
{
// Not applicable
}
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
bool InputImpl::isMouseButtonPressed(Mouse::Button button) bool InputImpl::isMouseButtonPressed(Mouse::Button button)
{ {

View File

@ -54,6 +54,14 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
static bool isKeyPressed(Keyboard::Key key); static bool isKeyPressed(Keyboard::Key key);
////////////////////////////////////////////////////////////
/// \brief Show or hide the virtual keyboard
///
/// \param visible True to show, false to hide
///
////////////////////////////////////////////////////////////
static void setVirtualKeyboardVisible(bool visible);
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Check if a mouse button is pressed /// \brief Check if a mouse button is pressed
/// ///