Magnum::Platform::EmscriptenApplication::InputEvent class

Base for input events.

Derived classes

class KeyEvent
Key event.
class MouseEvent deprecated in Git master
Mouse event.
class MouseMoveEvent deprecated in Git master
Mouse move event.
class MouseScrollEvent deprecated in Git master
Mouse scroll event.
class PointerEvent new in Git master
Pointer event.
class PointerMoveEvent new in Git master
Pointer move event.
class ScrollEvent new in Git master
Scroll event.

Public types

using Modifier = EmscriptenApplication::Modifier deprecated in Git master
Keyboard modifier.
using Modifiers = EmscriptenApplication::Modifiers deprecated in Git master
Set of keyboard 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.

Typedef documentation

typedef EmscriptenApplication::Modifier Magnum::Platform::EmscriptenApplication::InputEvent::Modifier

Keyboard modifier.

typedef EmscriptenApplication::Modifiers Magnum::Platform::EmscriptenApplication::InputEvent::Modifiers

Set of keyboard 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.