Skip to main content

VirtualKeyInfo

A class in Root.Township, the global namespace.

Layout data for one key of the in-game touch screen keyboard: where it sits, which row, and which key it types with and without shift.

Constructors​

MemberWhat it is
VirtualKeyInfo()Creates a VirtualKeyInfo from key.
VirtualKeyInfo(KeyCode key)Creates a VirtualKeyInfo from key.

Fields​

MemberWhat it is
KeyCode keyThe key typed normally.
Vector2 positionWhere the key sits on the keyboard layout.
int rowThe keyboard row the key is on, or -1 if not set.
KeyCode shiftKeyThe key typed while shift is active.

Methods​

MemberWhat it is
bool Equals(VirtualKeyInfo compare)True if position, key, shift key and row all match.

Used in​

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