49class KeyList :
private std::list<KeyPress>
51 typedef std::list<KeyPress>
super;
86 void clear() { super::clear(); }
90 if (
find(key) == end())
126 virtual bool OnEvent(
const SEvent &event);
257 virtual void step(
float dtime) {}
374 virtual void step(
float dtime);
376 s32
Rand(s32 min, s32 max);
Definition joystick_controller.h:87
bool isKeyDown(GameKeyType b)
Definition joystick_controller.h:128
bool wasKeyReleased(GameKeyType b)
Definition joystick_controller.h:110
void clear()
Definition joystick_controller.cpp:283
bool wasKeyDown(GameKeyType b)
Definition joystick_controller.h:103
bool wasKeyPressed(GameKeyType b)
Definition joystick_controller.h:119
void releaseAllKeys()
Definition joystick_controller.h:97
Definition inputhandler.h:50
virtual iterator find(const KeyPress &key)
Definition inputhandler.h:70
virtual const_iterator find(const KeyPress &key) const
Definition inputhandler.h:55
void append(const KeyList &other)
Definition inputhandler.h:112
super::iterator iterator
Definition inputhandler.h:52
void toggle(const KeyPress &key)
Definition inputhandler.h:102
std::list< KeyPress > super
Definition inputhandler.h:51
super::const_iterator const_iterator
Definition inputhandler.h:53
void set(const KeyPress &key)
Definition inputhandler.h:88
bool operator[](const KeyPress &key) const
Definition inputhandler.h:119
void unset(const KeyPress &key)
Definition inputhandler.h:94
void clear()
Definition inputhandler.h:86
@ ESC
Definition keys.h:26
@ INTERNAL_ENUM_COUNT
Definition keys.h:100
Definition inputhandler.h:123
KeyList keyWasDown
Definition inputhandler.h:200
KeyList keyIsDown
Definition inputhandler.h:197
void releaseAllKeys()
Definition inputhandler.h:173
s32 mouse_wheel
Definition inputhandler.h:194
bool WasKeyDown(const KeyPress &keyCode)
Definition inputhandler.h:131
bool WasKeyReleased(const KeyPress &keycode) const
Definition inputhandler.h:145
virtual bool OnEvent(const SEvent &event)
Definition inputhandler.cpp:87
void listenForKey(const KeyPress &keyCode)
Definition inputhandler.h:147
void dontListenForKeys()
Definition inputhandler.h:151
KeyList keysListenedFor
Definition inputhandler.h:213
bool IsKeyDown(const KeyPress &keyCode) const
Definition inputhandler.h:128
PointerType getLastPointerType()
Definition inputhandler.h:191
KeyList keyWasReleased
Definition inputhandler.h:206
bool fullscreen_is_down
Definition inputhandler.h:216
KeyList keyWasPressed
Definition inputhandler.h:203
bool WasKeyPressed(const KeyPress &keycode) const
Definition inputhandler.h:141
void clearWasKeyReleased()
Definition inputhandler.h:184
s32 getMouseWheel()
Definition inputhandler.h:156
void clearInput()
Definition inputhandler.h:163
PointerType last_pointer_type
Definition inputhandler.h:218
JoystickController * joystick
Definition inputhandler.h:189
void clearWasKeyPressed()
Definition inputhandler.h:179
core::vector2d< s32 > v2s32
Definition irr_v2d.h:13
Definition inputhandler.h:31
KeyPress key[KeyType::INTERNAL_ENUM_COUNT]
Definition inputhandler.h:45
void populate()
Definition inputhandler.cpp:20
InputHandler * handler
Definition inputhandler.h:46
KeyCache()
Definition inputhandler.h:33
void populate_nonchanging()
Definition inputhandler.cpp:15
static std::string p(std::string path)
Definition test_filesys.cpp:53