Magnum::Platform::EmscriptenApplication::MouseEvent class

Mouse event.

Base classes

class InputEvent
Base for input events.

Public types

enum class Button: std::int32_t { Left, Middle, Right }
Mouse button.

Public functions

auto button() const -> Button
Button.
auto position() const -> Vector2i
Position.
auto modifiers() const -> Modifiers
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