28 #ifdef HAVE_TOUCHSCREENGUI
64 class KeyList :
private std::list<KeyPress>
66 typedef std::list<KeyPress>
super;
105 if (
find(key) == end())
134 virtual bool OnEvent(
const SEvent &event);
187 #ifdef HAVE_TOUCHSCREENGUI
188 m_touchscreengui = NULL;
196 #ifdef HAVE_TOUCHSCREENGUI
254 virtual void step(
float dtime) {}
360 virtual void step(
float dtime);
362 s32
Rand(s32 min, s32 max);
Definition: joystick_controller.h:102
bool isKeyDown(GameKeyType b)
Definition: joystick_controller.h:137
bool wasKeyReleased(GameKeyType b)
Definition: joystick_controller.h:119
void clear()
Definition: joystick_controller.cpp:245
bool wasKeyDown(GameKeyType b)
Definition: joystick_controller.h:112
bool wasKeyPressed(GameKeyType b)
Definition: joystick_controller.h:128
Definition: inputhandler.h:65
virtual iterator find(const KeyPress &key)
Definition: inputhandler.h:85
virtual const_iterator find(const KeyPress &key) const
Definition: inputhandler.h:70
super::iterator iterator
Definition: inputhandler.h:67
void toggle(const KeyPress &key)
Definition: inputhandler.h:117
std::list< KeyPress > super
Definition: inputhandler.h:66
super::const_iterator const_iterator
Definition: inputhandler.h:68
void set(const KeyPress &key)
Definition: inputhandler.h:103
bool operator[](const KeyPress &key) const
Definition: inputhandler.h:127
void unset(const KeyPress &key)
Definition: inputhandler.h:109
void clear()
Definition: inputhandler.h:101
@ ESC
Definition: keys.h:41
@ INTERNAL_ENUM_COUNT
Definition: keys.h:114
Definition: inputhandler.h:131
KeyList keyWasDown
Definition: inputhandler.h:205
KeyList keyIsDown
Definition: inputhandler.h:202
s32 mouse_wheel
Definition: inputhandler.h:192
bool WasKeyDown(const KeyPress &keyCode)
Definition: inputhandler.h:139
bool WasKeyReleased(const KeyPress &keycode) const
Definition: inputhandler.h:153
virtual bool OnEvent(const SEvent &event)
Definition: inputhandler.cpp:98
void listenForKey(const KeyPress &keyCode)
Definition: inputhandler.h:155
void dontListenForKeys()
Definition: inputhandler.h:156
KeyList keysListenedFor
Definition: inputhandler.h:218
bool IsKeyDown(const KeyPress &keyCode) const
Definition: inputhandler.h:136
KeyList keyWasReleased
Definition: inputhandler.h:211
KeyList keyWasPressed
Definition: inputhandler.h:208
bool WasKeyPressed(const KeyPress &keycode) const
Definition: inputhandler.h:149
void clearWasKeyReleased()
Definition: inputhandler.h:180
s32 getMouseWheel()
Definition: inputhandler.h:158
void clearInput()
Definition: inputhandler.h:165
MyEventReceiver()
Definition: inputhandler.h:185
JoystickController * joystick
Definition: inputhandler.h:194
void clearWasKeyPressed()
Definition: inputhandler.h:175
static irr::IrrlichtDevice * get_raw_device()
Definition: renderingengine.h:86
Definition: touchscreengui.h:166
core::vector2d< s32 > v2s32
Definition: irr_v2d.h:28
const KeyPress CancelKey("KEY_CANCEL")
Definition: inputhandler.h:46
KeyPress key[KeyType::INTERNAL_ENUM_COUNT]
Definition: inputhandler.h:60
void populate()
Definition: inputhandler.cpp:31
InputHandler * handler
Definition: inputhandler.h:61
KeyCache()
Definition: inputhandler.h:48
void populate_nonchanging()
Definition: inputhandler.cpp:26
std::string p(std::string path)
Definition: test_filepath.cpp:59