Skip to main content

KeyboardEventTriggers.KeyTracker

A private class in Root.Township, the global namespace. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

Tracks one keyboard key and raises down and up events for it.

Constructors​

MemberWhat it is
KeyTracker(Key key)Creates a KeyboardEventTriggers.KeyTracker from key.

Properties​

MemberWhat it is
bool IsValid { get; }True only while both a down and an up handler are attached.
Key Key { get; }The key tracked.

Events​

MemberWhat it is
event KeyEventHandler KeyPressedDownRaised the frame the key is pressed.
event KeyEventHandler KeyPressedUpRaised the frame the key is released.

Methods​

MemberWhat it is
void Update()Checks the key on the current keyboard and raises the matching event.

Used in​

Members of other types that take, return or hold a KeyTracker: