canvas


Event Type

Represents one of the events: Key, DownArrow, UpArrow, LeftArrow, RightArow, Return, TimerTick, MouseButtonDown, MouseButtonUp, and MouseMotion.

Union cases

Union case Description

DownArrow

Full Usage: DownArrow

Down arrow is pressed

Key key

Full Usage: Key key

Parameters:
    key : char

A key with at letter is pressed

key : char

KeyUp key

Full Usage: KeyUp key

Parameters:
    key : string

A key is release

key : string

LeftArrow

Full Usage: LeftArrow

Left arrow is pressed

MouseButtonDown(x, y)

Full Usage: MouseButtonDown(x, y)

Parameters:
    x : int
    y : int

The left mouse button is clicked at coordinate `(x,y)`

x : int
y : int

MouseButtonUp(x, y)

Full Usage: MouseButtonUp(x, y)

Parameters:
    x : int
    y : int

The left mouse button is released at coordinate `(x,y)`

x : int
y : int

MouseMotion(x, y, relx, rely)

Full Usage: MouseMotion(x, y, relx, rely)

Parameters:
    x : int
    y : int
    relx : int
    rely : int

The mouse is moved

x : int
y : int
relx : int
rely : int

Return

Full Usage: Return

Return key is pressed

RightArrow

Full Usage: RightArrow

Right arrow is pressed

TimerTick

Full Usage: TimerTick

A tick event from the timer

UpArrow

Full Usage: UpArrow

Up arrow is pressed

Instance members

Instance member Description

this.IsDownArrow

Full Usage: this.IsDownArrow

Returns: bool
Returns: bool

this.IsKey

Full Usage: this.IsKey

Returns: bool
Returns: bool

this.IsKeyUp

Full Usage: this.IsKeyUp

Returns: bool
Returns: bool

this.IsLeftArrow

Full Usage: this.IsLeftArrow

Returns: bool
Returns: bool

this.IsMouseButtonDown

Full Usage: this.IsMouseButtonDown

Returns: bool
Returns: bool

this.IsMouseButtonUp

Full Usage: this.IsMouseButtonUp

Returns: bool
Returns: bool

this.IsMouseMotion

Full Usage: this.IsMouseMotion

Returns: bool
Returns: bool

this.IsReturn

Full Usage: this.IsReturn

Returns: bool
Returns: bool

this.IsRightArrow

Full Usage: this.IsRightArrow

Returns: bool
Returns: bool

this.IsTimerTick

Full Usage: this.IsTimerTick

Returns: bool
Returns: bool

this.IsUpArrow

Full Usage: this.IsUpArrow

Returns: bool
Returns: bool