MouseIO

I/O interface for emitting mouse events.

While a mouse button is held down, it will emit inactive input events. The moment a mouse button is released, it will emit an active event. This is unlike keyboard events in the sense that a mouse button will emit an event one frame after it is no longer held.

A MouseIO system will usually pass events to a HoverIO system it is child of.

Members

Aliases

press
alias press = click
Undocumented in source.
release
alias release = click
Undocumented in source.

Enums

Button
enum Button
Undocumented in source.

Mixins

__anonymous
mixin inputEvents!(MouseIO, Button)
Undocumented in source.

Mixed In Members

From mixin inputEvents!(MouseIO, Button)

getCode
InputEventCode getCode(Event event)

Get the input event code from an enum member.

codes
codes()

A shortcut for getting input event codes that are known at compile time. Handy for tests.

click
click()

A shortcut for getting input events that are known at compile time. Handy for tests.

createEvent
InputEvent createEvent(Event event, bool isActive)
hold
hold(bool isActive)

Create a mouse input event that can be passed to an ActionIO handler.

Inherited Members

From IO

opEquals
bool opEquals(Object )
Undocumented in source.
loadTo
void loadTo(T resource)

Load a resource by reference. This is the same as Node.load.

Meta