12#include <unordered_map>
28 virtual bool OnEvent(
const SEvent &event);
114 std::bitset<GameKeyType::INTERNAL_ENUM_COUNT>
keyIsDown;
173 virtual void step(
float dtime) {}
291 virtual void step(
float dtime);
293 s32
Rand(s32 min, s32 max);
296 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:331
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
@ INTERNAL_ENUM_COUNT
Definition keys.h:98
Definition inputhandler.h:25
bool checkKeyDown(GameKeyType action) const
Definition inputhandler.cpp:112
void reloadKeybindings()
Definition inputhandler.cpp:15
std::set< KeyPress > physicalKeyDown
Definition inputhandler.h:111
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:108
std::bitset< GameKeyType::INTERNAL_ENUM_COUNT > keyIsDown
Definition inputhandler.h:114
std::unordered_map< KeyPress, GameKeyType > keysListenedFor
Definition inputhandler.h:126
std::array< std::vector< KeyPress >, KeyType::INTERNAL_ENUM_COUNT > keybindings
Definition inputhandler.h:106
bool WasKeyReleased(GameKeyType key) const
Definition inputhandler.h:47
virtual bool OnEvent(const SEvent &event)
Definition inputhandler.cpp:121
bool setKeyDown(KeyPress keyCode, bool is_down)
Definition inputhandler.cpp:85
PointerType getLastPointerType()
Definition inputhandler.h:88
bool fullscreen_is_down
Definition inputhandler.h:129
std::bitset< GameKeyType::INTERNAL_ENUM_COUNT > keyWasReleased
Definition inputhandler.h:123
bool IsKeyDown(GameKeyType key) const
Definition inputhandler.h:30
bool esc_down
Definition inputhandler.h:132
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:117
PointerType last_pointer_type
Definition inputhandler.h:134
std::bitset< GameKeyType::INTERNAL_ENUM_COUNT > keyWasPressed
Definition inputhandler.h:120
JoystickController * joystick
Definition inputhandler.h:86
bool close_world_down
Definition inputhandler.h:131
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