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");
KeyEventType getType() const
virtual bool isMetaPressed() const
Checks whether meta is pressed.
void setKey(const Key &key)
virtual bool isConsumedByWidgets() const
virtual bool isControlPressed() const
Checks whether control is pressed.
bool isNumericPad() const
virtual int32_t getTimeStamp() const
Gets the timestamp of the event.
virtual void setControlPressed(bool pressed)
virtual void setShiftPressed(bool pressed)
virtual void setSource(IEventSource *source)
Sets the source of the event.
virtual ~KeyEvent()
Destructor.
const Key & getKey() const
virtual void setMetaPressed(bool pressed)
virtual void setTimeStamp(int32_t timestamp)
Sets the timestamp of the event.
Represents a key or a character.
virtual IEventSource * getSource() const
Gets the source of the event.
void setNumericPad(bool ispad)
virtual bool isAltPressed() const
Checks whether alt is pressed.
virtual bool isShiftPressed() const
Checks whether shift is pressed.
virtual bool isConsumed() const
Checks if the event is consumed.
void setType(KeyEventType type)
Representation of event source (a thing sending events)
virtual void consume()
Marks the event as consumed.
virtual std::string getDebugString() const
Gets the debugstring of the event.
virtual void setAltPressed(bool pressed)
virtual const std::string & getName() const
Gets the name of the event.
virtual void consumedByWidgets()
Marks events as consumed by widget library.