Input

Namespace: SharpPluginLoader.Core.IO

Provides a set of methods for checking the state of the controller and keyboard.

public static class Input

Inheritance ObjectInput

Methods

IsDown(Button)

Checks if the specified button is currently pressed.

public static bool IsDown(Button button)

Parameters

button Button

Returns

Boolean

IsPressed(Button)

Checks if the specified button was pressed in the last frame.

public static bool IsPressed(Button button)

Parameters

button Button

Returns

Boolean

IsReleased(Button)

Checks if the specified button was released in the last frame.

public static bool IsReleased(Button button)

Parameters

button Button

Returns

Boolean

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

Boolean

IsDown(Key)

Checks if the specified button is currently pressed.

public static bool IsDown(Key key)

Parameters

key Key

Returns

Boolean

IsPressed(Key)

Checks if the specified button was pressed in the last frame.

public static bool IsPressed(Key key)

Parameters

key Key

Returns

Boolean

IsReleased(Key)

Checks if the specified button was released in the last frame.

public static bool IsReleased(Key key)

Parameters

key Key

Returns

Boolean

IsChanged(Key)

Checks if the specified button was pressed or released in the last frame.

public static bool IsChanged(Key key)

Parameters

key Key

Returns

Boolean