Magnum::Platform::Sdl2Application::MouseMoveEvent class

Mouse move event.

Base classes

class InputEvent
Base for input events.

Public types

enum class Button: Uint32 { Left = SDL_BUTTON_LMASK, Middle = SDL_BUTTON_MMASK, Right = SDL_BUTTON_RMASK, X1 = SDL_BUTTON_X1MASK, X2 = SDL_BUTTON_X2MASK }
Mouse button.
using Buttons = Containers::EnumSet<Button>
Set of mouse buttons.

Public functions

auto position() const -> Vector2i
Position.
auto relativePosition() const -> Vector2i
Relative position.
auto buttons() const -> Buttons
Mouse buttons.
auto modifiers() -> Modifiers
Modifiers.

Enum documentation

enum class Magnum::Platform::Sdl2Application::MouseMoveEvent::Button: Uint32

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)

Typedef documentation

typedef Containers::EnumSet<Button> Magnum::Platform::Sdl2Application::MouseMoveEvent::Buttons

Set of mouse buttons.

Function documentation

Vector2i Magnum::Platform::Sdl2Application::MouseMoveEvent::relativePosition() const

Relative position.

Position relative to previous move event.

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

Modifiers.

Lazily populated on first request.