carb::input::MouseEvent

Defined in carb/input/InputTypes.h

struct MouseEvent

Defines the mouse event.

normalizedCoords - mouse coordinates only active in move events, normalized to [0.0, 1.0] relative to the associated window size. unscaledCoords - mouse coordinates only active in move events, not normalized. scrollDelta - scroll delta, only active in scroll events.

Public Members

Mouse *mouse

The Mouse handle that is sending this event.

InputDevice *device

The InputDevice handle that is sending this event.

union carb::input::MouseEvent::[anonymous] [anonymous]
MouseEventType type

The MouseEventType of this event.

Float2 normalizedCoords

The coordinates, when type is not MouseEventType::eScroll.

Float2 scrollDelta

The scroll delta, when type is MouseEventType::eScroll.

union carb::input::MouseEvent::[anonymous] [anonymous]
KeyboardModifierFlags modifiers

The KeyboardModifierFlags flags bitwise-or’d.

Float2 pixelCoords

Pixel coordinates.