Magnum::Platform::GlfwApplication::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 = GLFW_MOD_SHIFT, Ctrl = GLFW_MOD_CONTROL, Alt = GLFW_MOD_ALT, Super = GLFW_MOD_SUPER }
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.
void setAccepted(bool accepted = true)
Set event as accepted.
auto isAccepted() const -> bool
Whether the event is accepted.

Enum documentation

Typedef documentation

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

Set of modifiers.

Function documentation

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

Set event as accepted.

If the event is ignored (i.e., not set as accepted), it might be propagated elsewhere, for example to another screen when using ScreenedApplication. By default is each event ignored and thus propagated.