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 }
Mouse button.

Public functions

auto button() const -> Button
Button.
auto position() const -> Vector2i
Position.
auto clickCount() const -> Int
Click count.
auto modifiers() -> Sdl2Application::Modifiers
Keyboard 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)

Function documentation

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

Click count.

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

Keyboard modifiers.

Lazily populated on first request.