Definition keyboardbase.h:63
bool pressed
Definition keyboardbase.h:68
KeyState()
constructor
Definition keyboardbase.h:66
bool down
Definition keyboardbase.h:69
bool up
Definition keyboardbase.h:70
An input handler which represents a keyboard for polling.
Definition keyboardbase.h:19
void SetKeyDown(Input::Key::Code keyCode)
sets a key to be down
Definition keyboardbase.h:81
virtual void OnAttach()
called when the handler is attached to the input server
Definition keyboardbase.cc:58
virtual void OnReset()
reset the input handler
Definition keyboardbase.cc:189
virtual void OnObtainCapture()
called when input handler obtains capture
Definition keyboardbase.cc:161
__DeclareClass(KeyboardBase)
Util::FixedArray< KeyState > nextKeyStates
Definition keyboardbase.h:73
bool KeyUp(Input::Key::Code keyCode) const
return true if key was released at least once in current frame
Definition keyboardbase.h:122
virtual void EndCapture()
end input capturing to this event handler
Definition keyboardbase.cc:48
bool KeyDown(Input::Key::Code keyCode) const
return true if key was pushed down at least once in current frame
Definition keyboardbase.h:113
virtual void BeginCapture()
capture input to this event handler
Definition keyboardbase.cc:38
void SetKeyUp(Input::Key::Code keyCode)
sets a key to be up
Definition keyboardbase.h:95
KeyboardBase()
constructor
Definition keyboardbase.cc:19
Util::FixedArray< KeyState > keyStates
Definition keyboardbase.h:72
virtual ~KeyboardBase()
destructor
Definition keyboardbase.cc:29
Util::String charInput
Definition keyboardbase.h:74
const Util::String & GetCharInput() const
get character input in current frame
Definition keyboardbase.h:131
bool KeyPressed(Input::Key::Code keyCode) const
return true if a key is currently pressed
Definition keyboardbase.h:104
virtual void OnReleaseCapture()
called when input handler looses capture
Definition keyboardbase.cc:175
virtual bool OnEvent(const Input::InputEvent &inputEvent)
called when an input event should be processed
Definition keyboardbase.cc:104
virtual void OnBeginFrame()
called on InputServer::BeginFrame()
Definition keyboardbase.cc:71
Implements a fixed size one-dimensional array.
Definition fixedarray.h:20
Definition gamecontentserverbase.cc:10
Nebula's universal string class.
Definition string.h:50