Table of Contents

Class KeyEvent

Namespace
Vintagestory.API.Client
Assembly
VintagestoryAPI.dll
public class KeyEvent
Inheritance
KeyEvent
Inherited Members
Extension Methods

Properties

AltPressed

Is Alt being held down?

public bool AltPressed { get; set; }

Property Value

bool

CommandPressed

Is mac os command key being held down?

public bool CommandPressed { get; set; }

Property Value

bool

CtrlPressed

Is control/Ctrl being held down?

public bool CtrlPressed { get; set; }

Property Value

bool

Handled

Is this keypress/key combination handled?

public bool Handled { get; set; }

Property Value

bool

KeyChar

the character for the given key.

public char KeyChar { get; set; }

Property Value

char

KeyCode

The keycode value.

public int KeyCode { get; set; }

Property Value

int

KeyCode2

If a player taps in quick succession, this is the second key

public int? KeyCode2 { get; set; }

Property Value

int?

ShiftPressed

Is Shift being held down?

public bool ShiftPressed { get; set; }

Property Value

bool