Berserk
Macros
GlfwInput.cpp File Reference
#include <core/Engine.hpp>
#include <core/event/EventDropInput.hpp>
#include <core/event/EventJoystick.hpp>
#include <core/event/EventKeyboard.hpp>
#include <core/event/EventMouse.hpp>
#include <core/string/Unicode.hpp>
#include <platform/glfw/GlfwInput.hpp>
#include <platform/glfw/GlfwInputDefs.hpp>
#include <algorithm>
Include dependency graph for GlfwInput.cpp:

Macros

#define BRK_GLFW_INPUT_CALLBACK_SETUP
 
#define BRK_GLFW_INPUT_CALLBACK_SETUP_EXT
 

Macro Definition Documentation

◆ BRK_GLFW_INPUT_CALLBACK_SETUP

#define BRK_GLFW_INPUT_CALLBACK_SETUP
Value:
auto &engine = Engine::Instance(); \
auto &dispatcher = engine.GetEventDispatcher();
static BRK_API Engine & Instance()
Return engine global instance.
Definition: Engine.cpp:115

◆ BRK_GLFW_INPUT_CALLBACK_SETUP_EXT

#define BRK_GLFW_INPUT_CALLBACK_SETUP_EXT
Value:
BRK_GLFW_INPUT_CALLBACK_SETUP \
auto &input = engine.GetInput(); \
auto &glfwInput = *dynamic_cast<GlfwInput *>(&input);
Glfw input manager implementation.
Definition: GlfwInput.hpp:50