Scripting API

Scripting API

KeyEvent

Struct in Abyss.Core, from Abyss.Core.

One key going down or coming up, as World.ReadKeys reports it.

public readonly struct KeyEvent

Remarks

Laid out as abyss_core::input::KeyEvent is: the key, then one for down.

Constructors

KeyEvent

public KeyEvent(Key key, bool down)

A key going down or coming up — which is what a test that plays keys wants.

Parameters

  • key
  • down

Properties

Key

public Key Key { get; }

Which key.

Down

public bool Down { get; }

Whether it went down rather than came up.