File tree 2 files changed +19
-0
lines changed
2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -154,5 +154,18 @@ typedef enum
154
154
////////////////////////////////////////////////////////////
155
155
CSFML_WINDOW_API sfBool sfKeyboard_isKeyPressed (sfKeyCode key );
156
156
157
+ ////////////////////////////////////////////////////////////
158
+ /// \brief Show or hide the virtual keyboard.
159
+ ///
160
+ /// Warning: the virtual keyboard is not supported on all systems.
161
+ /// It will typically be implemented on mobile OSes (Android, iOS)
162
+ /// but not on desktop OSes (Windows, Linux, ...).
163
+ ///
164
+ /// If the virtual keyboard is not available, this function does nothing.
165
+ ///
166
+ /// \param visible True to show, false to hide
167
+ ///
168
+ ////////////////////////////////////////////////////////////
169
+ CSFML_WINDOW_API void sfKeyboard_setVirtualKeyboardVisible (sfBool visible );
157
170
158
171
#endif // SFML_KEYBOARD_H
Original file line number Diff line number Diff line change @@ -35,3 +35,9 @@ sfBool sfKeyboard_isKeyPressed(sfKeyCode key)
35
35
{
36
36
return sf::Keyboard::isKeyPressed (static_cast <sf::Keyboard::Key>(key));
37
37
}
38
+
39
+ // //////////////////////////////////////////////////////////
40
+ void sfKeyboard_setVirtualKeyboardVisible (sfBool visible)
41
+ {
42
+ sf::Keyboard::setVirtualKeyboardVisible (visible == sfTrue);
43
+ }
You can’t perform that action at this time.
0 commit comments