#include <OgreInputEvent.h>
Inheritance diagram for Ogre::InputEvent:
Public Types | |
enum | { SHIFT_MASK = 1 << 0, CTRL_MASK = 1 << 1, META_MASK = 1 << 2, ALT_MASK = 1 << 3, BUTTON0_MASK = 1 << 4, BUTTON1_MASK = 1 << 5, BUTTON2_MASK = 1 << 6, BUTTON3_MASK = 1 << 7, BUTTON_ANY_MASK = 0xF << 4 } |
Public Member Functions | |
InputEvent (EventTarget *source, int id, long when, int modifiers) | |
Constructs an InputEvent object with the specified source GuiElement, modifiers, and type. | |
void | consume () |
Consumes this event so that it will not be processed in the default manner by the source which originated it. | |
int | getModifiers () const |
Returns the modifiers flag for this event. | |
Real | getWhen () const |
Returns the timestamp of when this event occurred. | |
bool | isAltDown () const |
Returns whether or not the Alt modifier is down on this event. | |
bool | isConsumed () const |
Returns whether or not this event has been consumed. | |
bool | isControlDown () const |
Returns whether or not the Control modifier is down on this event. | |
bool | isMetaDown () const |
Returns whether or not the Meta modifier is down on this event. | |
bool | isShiftDown () const |
Returns whether or not the Shift modifier is down on this event. | |
bool | isEventBetween (int start, int end) const |
int | getID () const |
EventTarget * | getSource () const |
Protected Attributes | |
Real | mWhen |
Not implemented yet. | |
int | mModifiers |
The state of the modifier keys at the time the input event was fired. | |
EventTarget * | mSource |
The target to process the event. | |
int | mId |
The ID of the event. | |
bool | mConsumed |
whether the event has been consumed |
Definition at line 60 of file OgreInputEvent.h.
|
Definition at line 93 of file OgreInputEvent.h. |
|
Constructs an InputEvent object with the specified source GuiElement, modifiers, and type.
|
|
Consumes this event so that it will not be processed in the default manner by the source which originated it.
|
|
|
|
Returns the modifiers flag for this event.
|
|
|
|
Returns the timestamp of when this event occurred. Not implemented yet |
|
Returns whether or not the Alt modifier is down on this event.
|
|
Returns whether or not this event has been consumed.
|
|
Returns whether or not the Control modifier is down on this event.
|
|
|
|
Returns whether or not the Meta modifier is down on this event.
|
|
Returns whether or not the Shift modifier is down on this event.
|
|
whether the event has been consumed
Definition at line 88 of file OgreInputEvent.h. |
|
The ID of the event.
Definition at line 83 of file OgreInputEvent.h. |
|
The state of the modifier keys at the time the input event was fired.
Definition at line 72 of file OgreInputEvent.h. |
|
The target to process the event. This is ususally found by the dispatcher Definition at line 78 of file OgreInputEvent.h. |
|
Not implemented yet.
Definition at line 67 of file OgreInputEvent.h. |
Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Mar 12 14:39:26 2006