BoundedInput

Description

sealed class Tinman.Engine.Application.BoundedInput

Translates input events to the configured bounds and takes care of generating events in the correct sequence, as defined by IInputConsumer.ConsumeInput.

Public / Constructors

Bounded​Input


public constructor BoundedInput → ()

Creates a new instance of BoundedInput.

Public / Methods

Pop


public method Pop → ()

returns → InputEvent

The next translated input event or InputEvent.None if there are no more events.

Reads the next translated input event.

Push


public method Push → (1)

inputEvent in : InputEvent

The untranslated input event.

Writes an untranslated input event.

See also

BoundedInput.Pop

Public / Attributes

Bounds


public attribute Bounds → (get,set)

value : Box2I

The target bounds.

The bounds to which input events shall be translated.

Clip


public attribute Clip → (get,set)

value : Box2I

The clip bounds.

Optional rectangle to use for clipping input events.

Defaults to Box2I.Max.