Magnum::Platform::EmscriptenApplication::MouseEvent class

Mouse event.

Base classes

class InputEvent
Base for input events.

Public types

enum class Button: std::int32_t { Left = 0, Middle = 1, Right = 2 }
Mouse button.

Public functions

auto button() const -> Button
Button.
auto position() const -> Vector2i
Position.
auto modifiers() const -> Modifiers
Keyboard modifiers.
auto event() const -> const EmscriptenMouseEvent&
Underlying Emscripten event.

Enum documentation

enum class Magnum::Platform::EmscriptenApplication::MouseEvent::Button: std::int32_t

Mouse button.

Enumerators
Left

Left mouse button

Middle

Middle mouse button

Right

Right mouse button