Input
static class Inputimport Input from Wax;Per-frame convenience queries over InputData. Key transitions and motion totals reset each
frame; held keys and the latest pointer/modifier state persist. Read raw events when you need
their exact order. Text entry uses TextData, not physical key codes.
Inherits from object. Follow these links for inherited members.
Members
Downmethod
public static fn Down(Key key) : boolTests whether the key is held after processing this frame's events. A release in this frame clears it.
Pressedmethod
public static fn Pressed(Key key) : boolTests whether a not-held key became held at least once this frame. Repeated KeyDown events while held do not count as new presses.
Releasedmethod
public static fn Released(Key key) : boolTests whether a held key became released at least once this frame. Pressed and Released can both be true when both transitions occur in one frame.
MousePositiongetter
public static get MousePosition() : float2The most recent mouse-event position in logical points, retained across frames with no mouse events.
MouseDeltagetter
public static get MouseDelta() : float2The sum of MouseMove displacements this frame in logical points; zero when there are no motion events.
ScrollDeltagetter
public static get ScrollDelta() : float2The total scroll this frame in logical points, positive right and up.
Modifiersgetter
public static get Modifiers() : KeyModsThe modifier flags on the most recent input event, retained across frames with no events.