IInputState

Description

interface Tinman.Engine.Application.IInputState

Base interface for classes that consume input state directly by polling, instead of consuming input events.

Public / Methods

Is​Down

2 overloads


[Pure]
public method IsDown1 → (1)

key in : KeyboardKey

The keyboard key.

returns → bool

true if the key is pressed down, false if not.

Is the given keyboard key pressed down?


[Pure]
public method IsDown2 → (1)

button in : MouseButton

The mouse button.

returns → bool

true if the button is pressed down, false if not.

Is the given mouse button pressed down?

Extensions

Get​Modifiers


[Pure]
public static method GetModifiers → ()

returns → InputModifiers

The input modifier flags.

Returns the input modifiers.

Has​Modifier


public static method HasModifier → (1)

modifiers in : InputModifiers

The keyboard modifier.

returns → bool

true if the modifier is present, false if not.

Checks if the given keyboard modifier is present.