Magnum::Platform::Sdl2Application::MouseEvent class

Mouse event.

Base classes

class InputEvent
Base for input events.

Public types

enum class Button: Uint8 { Left = SDL_BUTTON_LEFT, Middle = SDL_BUTTON_MIDDLE, Right = SDL_BUTTON_RIGHT, X1 = SDL_BUTTON_X1, X2 = SDL_BUTTON_X2, WheelUp = SDL_BUTTON_X2 + 1 deprecated, WheelDown = SDL_BUTTON_X2 + 2 deprecated }
Mouse button.

Public functions

auto button() const -> Button
Button.
auto position() const -> Vector2i
Position.
auto clickCount() const -> Int
Click count.
auto modifiers() -> Modifiers
Modifiers.

Enum documentation

enum class Magnum::Platform::Sdl2Application::MouseEvent::Button: Uint8

Mouse button.

Enumerators
Left

Left button

Middle

Middle button

Right

Right button

X1

First extra button (e.g. wheel left)

X2

Second extra button (e.g. wheel right)

WheelUp

Wheel up

WheelDown

Wheel down

Function documentation

Int Magnum::Platform::Sdl2Application::MouseEvent::clickCount() const

Click count.

Modifiers Magnum::Platform::Sdl2Application::MouseEvent::modifiers()

Modifiers.

Lazily populated on first request.