FIFE
2008.0
|
#include <ec_inputevent.h>
Public Member Functions | |
InputEvent () | |
~InputEvent () | |
virtual bool | isAltPressed () const |
virtual bool | isControlPressed () const |
virtual bool | isMetaPressed () const |
virtual bool | isShiftPressed () const |
virtual void | consumedByWidgets () |
virtual void | consume () |
virtual bool | isConsumed () const |
virtual void | setSource (IEventSource *source) |
virtual int32_t | getTimeStamp () const |
virtual void | setTimeStamp (int32_t timestamp) |
virtual const std::string & | getName () const |
virtual std::string | getDebugString () const |
virtual std::string | getAttrStr () const |
![]() | |
Event () | |
virtual | ~Event () |
virtual IEventSource * | getSource () const |
Base class for input events (like mouse and keyboard)
Definition at line 42 of file ec_inputevent.h.
|
inline |
Constructor.
Definition at line 46 of file ec_inputevent.h.
|
inline |
Destructor.
Definition at line 56 of file ec_inputevent.h.
|
inlinevirtual |
Marks the event as consumed.
Reimplemented from FIFE::Event.
Reimplemented in FIFE::MouseEvent, and FIFE::KeyEvent.
Definition at line 83 of file ec_inputevent.h.
References FIFE::Event::consume().
Referenced by FIFE::KeyEvent::consume(), and FIFE::MouseEvent::consume().
|
inlinevirtual |
Marks events as consumed by widget library.
Reimplemented in FIFE::MouseEvent, and FIFE::KeyEvent.
Definition at line 80 of file ec_inputevent.h.
Referenced by FIFE::KeyEvent::consumedByWidgets(), and FIFE::MouseEvent::consumedByWidgets().
|
inlinevirtual |
Gets attribute string of the event
Reimplemented from FIFE::Event.
Reimplemented in FIFE::MouseEvent.
Definition at line 96 of file ec_inputevent.h.
References FIFE::Event::getAttrStr().
Referenced by FIFE::MouseEvent::getAttrStr().
|
inlinevirtual |
Gets the debugstring of the event
Reimplemented from FIFE::Event.
Reimplemented in FIFE::MouseEvent, and FIFE::KeyEvent.
Definition at line 94 of file ec_inputevent.h.
References FIFE::Event::getDebugString().
Referenced by FIFE::KeyEvent::getDebugString(), and FIFE::MouseEvent::getDebugString().
|
inlinevirtual |
Gets the name of the event
Reimplemented from FIFE::Event.
Reimplemented in FIFE::MouseEvent, and FIFE::KeyEvent.
Definition at line 90 of file ec_inputevent.h.
|
inlinevirtual |
Gets the timestamp of the event
Reimplemented from FIFE::Event.
Reimplemented in FIFE::MouseEvent, and FIFE::KeyEvent.
Definition at line 87 of file ec_inputevent.h.
References FIFE::Event::getTimeStamp().
Referenced by FIFE::KeyEvent::getTimeStamp(), and FIFE::MouseEvent::getTimeStamp().
|
inlinevirtual |
Checks whether alt is pressed.
Reimplemented in FIFE::MouseEvent, and FIFE::KeyEvent.
Definition at line 60 of file ec_inputevent.h.
Referenced by FIFE::KeyEvent::isAltPressed(), and FIFE::MouseEvent::isAltPressed().
|
inlinevirtual |
Checks if the event is consumed.
Reimplemented from FIFE::Event.
Reimplemented in FIFE::MouseEvent, and FIFE::KeyEvent.
Definition at line 84 of file ec_inputevent.h.
References FIFE::Event::isConsumed().
Referenced by FIFE::KeyEvent::isConsumed(), and FIFE::MouseEvent::isConsumed().
|
inlinevirtual |
Checks whether control is pressed.
Reimplemented in FIFE::MouseEvent, and FIFE::KeyEvent.
Definition at line 65 of file ec_inputevent.h.
Referenced by FIFE::KeyEvent::isControlPressed(), and FIFE::MouseEvent::isControlPressed().
|
inlinevirtual |
Checks whether meta is pressed.
Reimplemented in FIFE::MouseEvent, and FIFE::KeyEvent.
Definition at line 70 of file ec_inputevent.h.
Referenced by FIFE::KeyEvent::isMetaPressed(), and FIFE::MouseEvent::isMetaPressed().
|
inlinevirtual |
Checks whether shift is pressed.
Reimplemented in FIFE::MouseEvent, and FIFE::KeyEvent.
Definition at line 75 of file ec_inputevent.h.
Referenced by FIFE::KeyEvent::isShiftPressed(), and FIFE::MouseEvent::isShiftPressed().
|
inlinevirtual |
Sets the source of the event.
Reimplemented from FIFE::Event.
Reimplemented in FIFE::MouseEvent, and FIFE::KeyEvent.
Definition at line 86 of file ec_inputevent.h.
References FIFE::Event::setSource().
Referenced by FIFE::KeyEvent::setSource(), and FIFE::MouseEvent::setSource().
|
inlinevirtual |
Sets the timestamp of the event
Reimplemented from FIFE::Event.
Reimplemented in FIFE::MouseEvent, and FIFE::KeyEvent.
Definition at line 88 of file ec_inputevent.h.
References FIFE::Event::setTimeStamp().
Referenced by FIFE::KeyEvent::setTimeStamp(), and FIFE::MouseEvent::setTimeStamp().