50class KeyList :
private std::list<KeyPress>
52 typedef std::list<KeyPress>
super;
87 void clear() { super::clear(); }
91 if (
find(key) == end())
127 virtual bool OnEvent(
const SEvent &event);
258 virtual void step(
float dtime) {}
375 virtual void step(
float dtime);
377 s32
Rand(s32 min, s32 max);
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:283
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
Definition inputhandler.h:51
virtual iterator find(const KeyPress &key)
Definition inputhandler.h:71
virtual const_iterator find(const KeyPress &key) const
Definition inputhandler.h:56
void append(const KeyList &other)
Definition inputhandler.h:113
super::iterator iterator
Definition inputhandler.h:53
void toggle(const KeyPress &key)
Definition inputhandler.h:103
std::list< KeyPress > super
Definition inputhandler.h:52
super::const_iterator const_iterator
Definition inputhandler.h:54
void set(const KeyPress &key)
Definition inputhandler.h:89
bool operator[](const KeyPress &key) const
Definition inputhandler.h:120
void unset(const KeyPress &key)
Definition inputhandler.h:95
void clear()
Definition inputhandler.h:87
@ ESC
Definition keys.h:26
@ INTERNAL_ENUM_COUNT
Definition keys.h:100
Definition inputhandler.h:124
KeyList keyWasDown
Definition inputhandler.h:201
KeyList keyIsDown
Definition inputhandler.h:198
void releaseAllKeys()
Definition inputhandler.h:174
s32 mouse_wheel
Definition inputhandler.h:195
bool WasKeyDown(const KeyPress &keyCode)
Definition inputhandler.h:132
bool WasKeyReleased(const KeyPress &keycode) const
Definition inputhandler.h:146
virtual bool OnEvent(const SEvent &event)
Definition inputhandler.cpp:87
void listenForKey(const KeyPress &keyCode)
Definition inputhandler.h:148
void dontListenForKeys()
Definition inputhandler.h:152
KeyList keysListenedFor
Definition inputhandler.h:214
bool IsKeyDown(const KeyPress &keyCode) const
Definition inputhandler.h:129
PointerType getLastPointerType()
Definition inputhandler.h:192
KeyList keyWasReleased
Definition inputhandler.h:207
bool fullscreen_is_down
Definition inputhandler.h:217
KeyList keyWasPressed
Definition inputhandler.h:204
bool WasKeyPressed(const KeyPress &keycode) const
Definition inputhandler.h:142
void clearWasKeyReleased()
Definition inputhandler.h:185
s32 getMouseWheel()
Definition inputhandler.h:157
void clearInput()
Definition inputhandler.h:164
PointerType last_pointer_type
Definition inputhandler.h:219
JoystickController * joystick
Definition inputhandler.h:190
void clearWasKeyPressed()
Definition inputhandler.h:180
core::vector2d< s32 > v2s32
Definition irr_v2d.h:13
Definition inputhandler.h:32
KeyPress key[KeyType::INTERNAL_ENUM_COUNT]
Definition inputhandler.h:46
void populate()
Definition inputhandler.cpp:20
InputHandler * handler
Definition inputhandler.h:47
KeyCache()
Definition inputhandler.h:34
void populate_nonchanging()
Definition inputhandler.cpp:15
static std::string p(std::string path)
Definition test_filesys.cpp:55
constexpr v3f x
Definition test_irr_matrix4.cpp:15
constexpr v3f y
Definition test_irr_matrix4.cpp:16