|
Engine²
Open-source game engine written in C++.
|
#include <GLFW/glfw3.h>#include <glm/vec2.hpp>#include "Logger.hpp"#include "core/Core.hpp"#include "exception/InputError.hpp"Go to the source code of this file.
Namespaces | |
| namespace | Input |
| namespace | Input::Utils |
Typedefs | |
| using | Input::Utils::JoystickAxes = std::vector<float> |
| using | Input::Utils::JoystickButtons = std::vector<unsigned char> |
Functions | |
| bool | Input::Utils::IsKeyPressed (int key) noexcept |
| Check if a key is pressed. | |
| bool | Input::Utils::IsMouseButtonPressed (int button) noexcept |
| Check if a mouse button is pressed. | |
| glm::vec2 | Input::Utils::GetMousePosition () noexcept |
| Get the current mouse position. | |
| void | Input::Utils::PrintAvailableControllers () noexcept |
| Prints the available controllers that glfw can handle. | |
| bool | Input::Utils::IsJoystickPresent (int jid) noexcept |
| Check if a joystick is present. | |
| std::string | Input::Utils::GetJoystickName (int jid) noexcept |
| Get the name of a joystick. | |
| JoystickAxes | Input::Utils::GetJoystickAxes (int jid) |
| Get the joystick axis values. | |
| JoystickButtons | Input::Utils::GetJoystickButtons (int jid) |
| Get the joystick button states. | |