TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

interface IInputState in Tinman.Engine.Application

interface IInputState base of IApplication
  IApplicationWindow
  InputEvent

Methods

IsDown

Is the given keyboard key pressed down?

[Pure]
method IsDown (KeyboardKey key)
type bool
params key The keyboard key.
returns true if the key is pressed down, false if not.

Is the given mouse button pressed down?

[Pure]
method IsDown (MouseButton button)
type bool
params button The mouse button.
returns true if the button is pressed down, false if not.

Extensions

GetModifiers

Returns the input modifiers.

[Pure]
method GetModifiers ()
type InputModifiers
returns The input modifier flags.

HasModifier

Checks if the given keyboard modifier is present.

method HasModifier (InputModifiers modifiers)
type bool
params modifiers The keyboard modifier.
returns true if the modifier is present, false if not.