← Standard library

InputEvent

struct InputEvent
import InputEvent from Wax;

One physical-key, mouse, or window event. kind determines which payload fields are meaningful; unused fields are zero. Text entry is carried by TextEvent instead.

InputEvent.wax:32

Members

positionfield

public float2 position

Mouse position, or new window size for WindowResize, in logical points.

InputEvent.wax:38

scrollfield

public float2 scroll

MouseScroll displacement in logical points, positive right and up.

InputEvent.wax:44

keyfield

public Key key

The layout-independent physical key for KeyDown/KeyUp; not a character or native platform scancode.

InputEvent.wax:52

_pad0field

public uint16 _pad0

Reserved event-layout padding; leave zero.

InputEvent.wax:57

kindfield

public InputEventKind kind

The event discriminator selecting the meaningful payload fields.

InputEvent.wax:62

modsfield

public KeyMods mods

The modifier flags in effect when the event was produced.

InputEvent.wax:68

buttonfield

public MouseButton button

The button for MouseDown/MouseUp; None for other event kinds.

InputEvent.wax:74

_pad1field

public uint8 _pad1

Reserved event-layout padding; leave zero.

InputEvent.wax:79

ToStringmethod

public fn ToString() : string

Provided by the compiler.

ToStringBuffermethod

public fn ToStringBuffer(StringBuilder builder) : int32

Provided by the compiler.

constructorconstructor

public constructor ()

Provided by the compiler.