Chord

Namespace: Murder.Core.Input
Assembly: Murder.dll

public sealed class Chord

Represents a sequence of Key with optional modifiers.

⭐ Constructors

public Chord(Keys key, Keys[] modifiers)

Represents a sequence of Key with optional modifiers.

Parameters
key Keys

modifiers Keys[]

⭐ Properties

Key

public Keys Key { get; }

The key that needs to be pressed to trigger this chord.

Returns
Keys

Modifiers

public Keys[] Modifiers { get; }

A list of optional modifiers that need to be pressed along with Chord.Key in order to trigger this chord.

Returns
Keys[]

⭐ Methods

ToString()

public virtual string ToString()

Returns
string