|
FIFE
|
Class for key events. More...
#include <ec_keyevent.h>
Inheritance diagram for FIFE::KeyEvent:
Collaboration diagram for FIFE::KeyEvent:Public Types | |
| enum | KeyEventType { UNKNOWN = -1, PRESSED = 0, RELEASED } |
Public Member Functions | |
| KeyEvent () | |
| Constructor. More... | |
| virtual | ~KeyEvent () |
| Destructor. More... | |
| KeyEventType | getType () const |
| void | setType (KeyEventType type) |
| bool | isNumericPad () const |
| void | setNumericPad (bool ispad) |
| const Key & | getKey () const |
| void | setKey (const Key &key) |
| virtual bool | isAltPressed () const |
| Checks whether alt is pressed. More... | |
| virtual void | setAltPressed (bool pressed) |
| virtual bool | isControlPressed () const |
| Checks whether control is pressed. More... | |
| virtual void | setControlPressed (bool pressed) |
| virtual bool | isMetaPressed () const |
| Checks whether meta is pressed. More... | |
| virtual void | setMetaPressed (bool pressed) |
| virtual bool | isShiftPressed () const |
| Checks whether shift is pressed. More... | |
| virtual void | setShiftPressed (bool pressed) |
| virtual void | consume () |
| Marks the event as consumed. More... | |
| virtual bool | isConsumed () const |
| Checks if the event is consumed. More... | |
| virtual void | consumedByWidgets () |
| Marks events as consumed by widget library. More... | |
| virtual bool | isConsumedByWidgets () const |
| virtual IEventSource * | getSource () const |
| Gets the source of the event. More... | |
| virtual void | setSource (IEventSource *source) |
| Sets the source of the event. More... | |
| virtual int32_t | getTimeStamp () const |
| Gets the timestamp of the event. More... | |
| virtual void | setTimeStamp (int32_t timestamp) |
| Sets the timestamp of the event. More... | |
| virtual const std::string & | getName () const |
| Gets the name of the event. More... | |
| virtual std::string | getDebugString () const |
| Gets the debugstring of the event. More... | |
Public Member Functions inherited from FIFE::InputEvent | |
| InputEvent () | |
| Constructor. More... | |
| ~InputEvent () | |
| Destructor. More... | |
| virtual std::string | getAttrStr () const |
| Gets attribute string of the event. More... | |
Public Member Functions inherited from FIFE::Event | |
| Event () | |
| Constructor. More... | |
| virtual | ~Event () |
| Destructor. More... | |
Private Attributes | |
| KeyEventType | m_eventtype |
| bool | m_isnumericpad |
| Key | m_key |
Class for key events.
Definition at line 45 of file ec_keyevent.h.
| Enumerator | |
|---|---|
| UNKNOWN | |
| PRESSED | |
| RELEASED | |
Definition at line 47 of file ec_keyevent.h.
|
inline |
Constructor.
Definition at line 55 of file ec_keyevent.h.
|
inlinevirtual |
Destructor.
Definition at line 63 of file ec_keyevent.h.
|
inlinevirtual |
Marks the event as consumed.
Reimplemented from FIFE::InputEvent.
Definition at line 83 of file ec_keyevent.h.
References FIFE::InputEvent::consume().
|
inlinevirtual |
Marks events as consumed by widget library.
Reimplemented from FIFE::InputEvent.
Definition at line 85 of file ec_keyevent.h.
References FIFE::InputEvent::consumedByWidgets().
|
inlinevirtual |
Gets the debugstring of the event.
Reimplemented from FIFE::InputEvent.
Definition at line 96 of file ec_keyevent.h.
References FIFE::InputEvent::getDebugString().
|
inline |
Definition at line 71 of file ec_keyevent.h.
References m_key.
Referenced by FIFE::EventManager::processKeyEvent().
Here is the caller graph for this function:
|
inlinevirtual |
Gets the name of the event.
Reimplemented from FIFE::InputEvent.
Definition at line 92 of file ec_keyevent.h.
|
inlinevirtual |
Gets the source of the event.
Reimplemented from FIFE::InputEvent.
Definition at line 87 of file ec_keyevent.h.
References FIFE::InputEvent::getSource().
|
inlinevirtual |
Gets the timestamp of the event.
Reimplemented from FIFE::InputEvent.
Definition at line 89 of file ec_keyevent.h.
References FIFE::InputEvent::getTimeStamp().
|
inline |
Definition at line 65 of file ec_keyevent.h.
References m_eventtype.
Referenced by FIFE::EventManager::dispatchKeyEvent(), and FIFE::EventManager::processKeyEvent().
Here is the caller graph for this function:
|
inlinevirtual |
Checks whether alt is pressed.
Reimplemented from FIFE::InputEvent.
Definition at line 74 of file ec_keyevent.h.
References FIFE::InputEvent::isAltPressed().
|
inlinevirtual |
Checks if the event is consumed.
Reimplemented from FIFE::InputEvent.
Definition at line 84 of file ec_keyevent.h.
References FIFE::InputEvent::isConsumed().
|
inlinevirtual |
Reimplemented from FIFE::InputEvent.
Definition at line 86 of file ec_keyevent.h.
References FIFE::InputEvent::isConsumedByWidgets().
|
inlinevirtual |
Checks whether control is pressed.
Reimplemented from FIFE::InputEvent.
Definition at line 76 of file ec_keyevent.h.
References FIFE::InputEvent::isControlPressed().
|
inlinevirtual |
Checks whether meta is pressed.
Reimplemented from FIFE::InputEvent.
Definition at line 78 of file ec_keyevent.h.
References FIFE::InputEvent::isMetaPressed().
|
inline |
Definition at line 68 of file ec_keyevent.h.
References m_isnumericpad.
|
inlinevirtual |
Checks whether shift is pressed.
Reimplemented from FIFE::InputEvent.
Definition at line 80 of file ec_keyevent.h.
References FIFE::InputEvent::isShiftPressed().
|
inlinevirtual |
Reimplemented from FIFE::InputEvent.
Definition at line 75 of file ec_keyevent.h.
References FIFE::InputEvent::setAltPressed().
Referenced by FIFE::EventManager::fillKeyEvent(), and FIFE::FifechanManager::translateKeyEvent().
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented from FIFE::InputEvent.
Definition at line 77 of file ec_keyevent.h.
References FIFE::InputEvent::setControlPressed().
Referenced by FIFE::EventManager::fillKeyEvent(), and FIFE::FifechanManager::translateKeyEvent().
Here is the caller graph for this function:
|
inline |
Definition at line 72 of file ec_keyevent.h.
References m_key.
Referenced by FIFE::EventManager::fillKeyEvent(), and FIFE::FifechanManager::translateKeyEvent().
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented from FIFE::InputEvent.
Definition at line 79 of file ec_keyevent.h.
References FIFE::InputEvent::setMetaPressed().
Referenced by FIFE::EventManager::fillKeyEvent(), and FIFE::FifechanManager::translateKeyEvent().
Here is the caller graph for this function:
|
inline |
Definition at line 69 of file ec_keyevent.h.
References m_isnumericpad.
Referenced by FIFE::EventManager::fillKeyEvent(), and FIFE::FifechanManager::translateKeyEvent().
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented from FIFE::InputEvent.
Definition at line 81 of file ec_keyevent.h.
References FIFE::InputEvent::setShiftPressed().
Referenced by FIFE::EventManager::fillKeyEvent(), and FIFE::FifechanManager::translateKeyEvent().
Here is the caller graph for this function:
|
inlinevirtual |
Sets the source of the event.
Reimplemented from FIFE::InputEvent.
Definition at line 88 of file ec_keyevent.h.
References FIFE::InputEvent::setSource().
Referenced by FIFE::EventManager::processKeyEvent().
Here is the caller graph for this function:
|
inlinevirtual |
Sets the timestamp of the event.
Reimplemented from FIFE::InputEvent.
Definition at line 90 of file ec_keyevent.h.
References FIFE::InputEvent::setTimeStamp().
|
inline |
Definition at line 66 of file ec_keyevent.h.
References m_eventtype.
Referenced by FIFE::EventManager::fillKeyEvent(), and FIFE::FifechanManager::translateKeyEvent().
Here is the caller graph for this function:
|
private |
Definition at line 99 of file ec_keyevent.h.
|
private |
Definition at line 100 of file ec_keyevent.h.
Referenced by isNumericPad(), and setNumericPad().
|
private |
Definition at line 101 of file ec_keyevent.h.