STRUCT v1.8.0

Event

kn::Event

Declared in kraken/input/Event.hpp

Reference

C++ API
std::variant< int, float, double, bool, uint32_t, int64_t, uint64_t, std::string, std::vector< float >, std::vector< std::string >, Scancode, Keycode, MouseButton, GamepadButton, GamepadAxis, PenAxis > AttributeValue

No description in the source header.

type

variable
uint32_t type

No description in the source header.

data

variable
std::unordered_map< std::string, AttributeValue > data

No description in the source header.

Event

function
Event(uint32_t type)

No description in the source header.

is

function
bool is(const EventType t) const

No description in the source header.

get

function
template <typename T>
T get(const std::string &name) const

No description in the source header.

Find your next step

Start typing to search the manual.