29 #ifndef _InputHandler_H__ 30 #define _InputHandler_H__ 57 template <ButtonEvent::Value Event>
64 namespace KeyboardModifier
87 , modifiers_(modifiers)
90 {
return rhs.
key_ == key_; }
92 {
return rhs.
key_ != key_; }
94 { modifiers_ = modifiers; }
100 unsigned int getText()
const {
return text_; }
124 { this->buttonPressed(button); }
126 { this->buttonReleased(button); }
128 { this->buttonHeld(button); }
143 virtual void axisMoved (
unsigned int joyStick,
unsigned int axis,
float value){ }
KeyCode::ByEnum key_
Definition: InputHandler.h:103
KeyEvent(KeyCode::ByEnum key, unsigned int text, int modifiers)
Definition: InputHandler.h:84
void setModifiers(int modifiers)
Definition: InputHandler.h:93
bool isModifierDown(KeyboardModifier::Enum modifier) const
Definition: InputHandler.h:96
IntVector2()
Definition: InputHandler.h:40
Definition: InputHandler.h:71
KeyCode
Keyboard scan codes.
Definition: OISKeyboard.h:31
bool operator!=(const KeyEvent &rhs) const
Definition: InputHandler.h:91
bool operator==(const KeyEvent &rhs) const
Definition: InputHandler.h:89
Definition: InputHandler.h:69
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
unsigned int text_
Definition: InputHandler.h:104
int modifiers_
Definition: InputHandler.h:105
#define _CoreExport
Definition: CorePrereqs.h:61
KeyCode::ByEnum getKeyCode() const
Definition: InputHandler.h:98
Event argument for key events.
Definition: InputHandler.h:76
Definition: InputPrereqs.h:78
A Vector class containing two integers x and y.
Definition: InputHandler.h:37
KeyEvent(const OIS::KeyEvent &evt)
Definition: InputHandler.h:79
int x
Definition: InputHandler.h:42
IntVector2(int _x, int _y)
Definition: InputHandler.h:41
int y
Definition: InputHandler.h:43
Definition: InputHandler.h:70
ByEnum
Key codes as enumeration.
Definition: InputPrereqs.h:56
unsigned int getText() const
Definition: InputHandler.h:100
Enum
Keyboard modifiers (shift, ctrl and alt)
Definition: InputHandler.h:67
Specialised for key events.
Definition: OISKeyboard.h:183