Magnum::Platform::EmscriptenApplication::InputEvent class

Base for input events.

Derived classes

class KeyEvent
Key event.
class MouseEvent
Mouse event.
class MouseMoveEvent
Mouse move event.
class MouseScrollEvent
Mouse scroll event.

Public types

enum class Modifier: Int { Shift = 1 << 0, Ctrl = 1 << 1, Alt = 1 << 2, Super = 1 << 3 }
Modifier.
using Modifiers = Containers::EnumSet<Modifier>
Set of modifiers.

Constructors, destructors, conversion operators

InputEvent(const InputEvent&) deleted
Copying is not allowed.
InputEvent(InputEvent&&) deleted
Moving is not allowed.

Public functions

auto operator=(const InputEvent&) -> InputEvent& deleted
Copying is not allowed.
auto operator=(InputEvent&&) -> InputEvent& deleted
Moving is not allowed.
auto isAccepted() const -> bool
Whether the event is accepted.
void setAccepted(bool accepted = true)
Set event as accepted.

Enum documentation

enum class Magnum::Platform::EmscriptenApplication::InputEvent::Modifier: Int

Modifier.

Enumerators
Shift

Shift

Ctrl

Ctrl

Alt

Alt

Super

Super key (Windows/⌘)

Typedef documentation

typedef Containers::EnumSet<Modifier> Magnum::Platform::EmscriptenApplication::InputEvent::Modifiers

Set of modifiers.

Function documentation

void Magnum::Platform::EmscriptenApplication::InputEvent::setAccepted(bool accepted = true)

Set event as accepted.

If the event is ignored (i.e., not set as accepted), it is propagated to other elements on the page. By default each event is ignored and thus propagated.