Magnum::Platform::AndroidApplication::MouseMoveEvent class

Mouse move event.

Base classes

class InputEvent
Base for input events.

Public types

enum class Button: std::int32_t { Left = AMOTION_EVENT_BUTTON_PRIMARY, Middle = AMOTION_EVENT_BUTTON_TERTIARY, Right = AMOTION_EVENT_BUTTON_SECONDARY }
Mouse button.
using Buttons = Containers::EnumSet<Button>
Set of mouse buttons.

Public functions

auto position() const -> Vector2i
Position.
auto relativePosition() const -> Vector2i new in 2019.10
Relative position.
auto buttons() const -> Buttons
Mouse buttons.

Enum documentation

enum class Magnum::Platform::AndroidApplication::MouseMoveEvent::Button: std::int32_t

Mouse button.

Enumerators
Left

Left mouse button. Note that this button is not set if only touch or stylus event occurred.

Middle

Middle mouse button or second stylus button

Right

Right mouse button or first stylus button

Typedef documentation

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

Set of mouse buttons.

Function documentation

Vector2i Magnum::Platform::AndroidApplication::MouseMoveEvent::relativePosition() const new in 2019.10

Relative position.

Position relative to previous move event. Unlike Sdl2Application, Android APIs don't provide relative position directly, so this is calculated explicitly as a delta from previous move event position.