22 #ifndef FIFE_EVENTCHANNEL_KEYEVENT_H 23 #define FIFE_EVENTCHANNEL_KEYEVENT_H 92 virtual const std::string&
getName()
const {
93 const static std::string eventName(
"KeyEvent");
virtual const std::string & getName() const
Gets the name of the event.
void setKey(const Key &key)
virtual std::string getDebugString() const
Gets the debugstring of the event.
KeyEventType getType() const
virtual void setControlPressed(bool pressed)
Sets control to pressed.
virtual void setShiftPressed(bool pressed)
Sets shift to pressed.
virtual bool isConsumed() const
Checks whether event is consumed.
virtual void setSource(IEventSource *source)
Sets the source of the event.
virtual ~KeyEvent()
Destructor.
virtual void setMetaPressed(bool pressed)
Sets meta to pressed.
virtual void setTimeStamp(int32_t timestamp)
Sets the timestamp of the event.
const Key & getKey() const
void setNumericPad(bool ispad)
virtual bool isControlPressed() const
Checks whether control is pressed.
void setType(KeyEventType type)
virtual bool isConsumedByWidgets() const
Checks whether event is consumed by widget library.
virtual bool isAltPressed() const
Checks whether alt is pressed.
virtual int32_t getTimeStamp() const
Gets the timestamp of the event.
virtual bool isMetaPressed() const
Checks whether meta is pressed.
Representation of event source (a thing sending events)
virtual IEventSource * getSource() const
Gets the source of the event.
virtual void consume()
Marks events as consumed.
bool isNumericPad() const
virtual void setAltPressed(bool pressed)
Sets alt to pressed.
virtual void consumedByWidgets()
Marks events as consumed by widget library.
virtual bool isShiftPressed() const
Checks whether shift is pressed.