Magnum::Platform::GlfwApplication::MouseEvent class

Mouse event.

Base classes

class InputEvent
Base for input events.

Public types

enum class Button: int { Left = GLFW_MOUSE_BUTTON_LEFT, Middle = GLFW_MOUSE_BUTTON_MIDDLE, Right = GLFW_MOUSE_BUTTON_RIGHT, Button1 = GLFW_MOUSE_BUTTON_1, Button2 = GLFW_MOUSE_BUTTON_2, Button3 = GLFW_MOUSE_BUTTON_3, Button4 = GLFW_MOUSE_BUTTON_4, Button5 = GLFW_MOUSE_BUTTON_5, Button6 = GLFW_MOUSE_BUTTON_6, Button7 = GLFW_MOUSE_BUTTON_7, Button8 = GLFW_MOUSE_BUTTON_8, WheelUp = GLFW_MOUSE_BUTTON_LAST + 1 deprecated, WheelDown = GLFW_MOUSE_BUTTON_LAST + 2 deprecated }
Mouse button.

Public functions

auto button() const -> Button constexpr
Button.
auto position() const -> Vector2i constexpr
Position.
auto modifiers() const -> Modifiers constexpr
Modifiers.

Enum documentation

enum class Magnum::Platform::GlfwApplication::MouseEvent::Button: int

Mouse button.

Enumerators
Left

Left button

Middle

Middle button

Right

Right button

Button1

Mouse button 1

Button2

Mouse button 2

Button3

Mouse button 3

Button4

Mouse button 4

Button5

Mouse button 5

Button6

Mouse button 6

Button7

Mouse button 7

Button8

Mouse button 8

WheelUp

Wheel up

WheelDown

Wheel down