12#include <unordered_map>
28 virtual bool OnEvent(
const SEvent &event);
113 std::bitset<GameKeyType::INTERNAL_ENUM_COUNT>
keyIsDown;
172 virtual void step(
float dtime) {}
290 virtual void step(
float dtime);
292 s32
Rand(s32 min, s32 max);
295 std::bitset<GameKeyType::INTERNAL_ENUM_COUNT>
keydown;
Definition joystick_controller.h:89
bool isKeyDown(GameKeyType b)
Definition joystick_controller.h:130
bool wasKeyReleased(GameKeyType b)
Definition joystick_controller.h:112
void clear()
Definition joystick_controller.cpp:281
bool wasKeyDown(GameKeyType b)
Definition joystick_controller.h:105
bool wasKeyPressed(GameKeyType b)
Definition joystick_controller.h:121
void releaseAllKeys()
Definition joystick_controller.h:99
@ ESC
Definition keys.h:24
Definition inputhandler.h:25
void reloadKeybindings()
Definition inputhandler.cpp:15
std::set< KeyPress > physicalKeyDown
Definition inputhandler.h:110
void listenForKey(KeyPress keyCode, GameKeyType action)
Definition inputhandler.h:91
bool WasKeyPressed(GameKeyType key) const
Definition inputhandler.h:43
void releaseAllKeys()
Definition inputhandler.h:69
s32 mouse_wheel
Definition inputhandler.h:107
std::bitset< GameKeyType::INTERNAL_ENUM_COUNT > keyIsDown
Definition inputhandler.h:113
std::unordered_map< KeyPress, GameKeyType > keysListenedFor
Definition inputhandler.h:125
bool WasKeyReleased(GameKeyType key) const
Definition inputhandler.h:47
virtual bool OnEvent(const SEvent &event)
Definition inputhandler.cpp:112
bool setKeyDown(KeyPress keyCode, bool is_down)
Definition inputhandler.cpp:83
PointerType getLastPointerType()
Definition inputhandler.h:88
bool fullscreen_is_down
Definition inputhandler.h:128
std::array< KeyPress, KeyType::INTERNAL_ENUM_COUNT > keybindings
Definition inputhandler.h:105
std::bitset< GameKeyType::INTERNAL_ENUM_COUNT > keyWasReleased
Definition inputhandler.h:122
bool IsKeyDown(GameKeyType key) const
Definition inputhandler.h:30
bool esc_down
Definition inputhandler.h:131
void clearWasKeyReleased()
Definition inputhandler.h:81
s32 getMouseWheel()
Definition inputhandler.h:51
void clearInput()
Definition inputhandler.h:58
std::bitset< GameKeyType::INTERNAL_ENUM_COUNT > keyWasDown
Definition inputhandler.h:116
PointerType last_pointer_type
Definition inputhandler.h:133
std::bitset< GameKeyType::INTERNAL_ENUM_COUNT > keyWasPressed
Definition inputhandler.h:119
JoystickController * joystick
Definition inputhandler.h:86
bool close_world_down
Definition inputhandler.h:130
void clearWasKeyPressed()
Definition inputhandler.h:76
bool WasKeyDown(GameKeyType key)
Definition inputhandler.h:33
int getLayer() const
Definition settings.h:233
void registerChangedCallback(const std::string &name, SettingsChangedCallback cbf, void *userdata=NULL)
Definition settings.cpp:1034
core::vector2d< s32 > v2s32
Definition irr_v2d.h:13
Settings * g_settings
Definition settings.cpp:22
@ SL_DEFAULTS
Definition settings.h:52
bool str_starts_with(std::basic_string_view< T > str, std::basic_string_view< T > prefix, bool case_insensitive=false)
Check whether str begins with the string prefix.
Definition string.h:210
constexpr v3f x
Definition test_irr_matrix4.cpp:18
constexpr v3f y
Definition test_irr_matrix4.cpp:19