C# Class SFML.Window.Keyboard

Give access to the real-time state of the keyboard
Datei anzeigen Open project: SFML/SFML.Net Class Usage Examples

Public Methods

Method Description
IsKeyPressed ( Key key ) : bool

Check if a key is pressed

SetVirtualKeyboardVisible ( bool visible ) : void

Enable/Disable visibility of the virtual keyboard

Applicable only on Android and iOS

Private Methods

Method Description
sfKeyboard_isKeyPressed ( Key Key ) : bool
sfKeyboard_setVirtualKeyboardVisible ( bool visible ) : void

Method Details

IsKeyPressed() public static method

Check if a key is pressed
public static IsKeyPressed ( Key key ) : bool
key Key Key to check
return bool

SetVirtualKeyboardVisible() public static method

Enable/Disable visibility of the virtual keyboard
Applicable only on Android and iOS
public static SetVirtualKeyboardVisible ( bool visible ) : void
visible bool Whether to make the virtual keyboard visible (true) or not (false)
return void