Input
Namespace: SharpPluginLoader.Core.IO
Provides a set of methods for checking the state of the controller and keyboard.
public static class Input
Methods
IsDown(Button)
Checks if the specified button is currently pressed.
public static bool IsDown(Button button)
Parameters
button
Button
Returns
IsPressed(Button)
Checks if the specified button was pressed in the last frame.
public static bool IsPressed(Button button)
Parameters
button
Button
Returns
IsReleased(Button)
Checks if the specified button was released in the last frame.
public static bool IsReleased(Button button)
Parameters
button
Button
Returns
IsChanged(Button)
Checks if the specified button was pressed or released in the last frame.
public static bool IsChanged(Button button)
Parameters
button
Button
Returns
IsDown(Key)
Checks if the specified button is currently pressed.
public static bool IsDown(Key key)
Parameters
key
Key
Returns
IsPressed(Key)
Checks if the specified button was pressed in the last frame.
public static bool IsPressed(Key key)
Parameters
key
Key
Returns
IsReleased(Key)
Checks if the specified button was released in the last frame.
public static bool IsReleased(Key key)
Parameters
key
Key
Returns
IsChanged(Key)
Checks if the specified button was pressed or released in the last frame.
public static bool IsChanged(Key key)
Parameters
key
Key