#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 = 0x1111 << 4 } |
Public Methods | |
InputEvent (EventTarget *source, int id, long when, int modifiers) | |
Constructs an InputEvent object with the specified source GuiElement, modifiers, and type. More... | |
void | consume () |
Consumes this event so that it will not be processed in the default manner by the source which originated it. More... | |
int | getModifiers () |
Returns the modifiers flag for this event. More... | |
Real | getWhen () |
Returns the timestamp of when this event occurred. More... | |
bool | isAltDown () |
Returns whether or not the Alt modifier is down on this event. More... | |
bool | isConsumed () |
Returns whether or not this event has been consumed. More... | |
bool | isControlDown () |
Returns whether or not the Control modifier is down on this event. More... | |
bool | isMetaDown () |
Returns whether or not the Meta modifier is down on this event. More... | |
bool | isShiftDown () |
Returns whether or not the Shift modifier is down on this event. More... | |
bool | isEventBetween (int start, int end) |
int | getID () |
EventTarget * | getSource () |
Protected Attributes | |
Real | mWhen |
Not implemented yet. More... | |
int | mModifiers |
The state of the modifier keys at the time the input event was fired. More... | |
EventTarget * | mSource |
The target to process the event. More... | |
int | mId |
The ID of the event. More... | |
bool | mConsumed |
whether the event has been consumed. More... |
|
|
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.
|
|
The ID of the event.
|
|
The state of the modifier keys at the time the input event was fired.
|
|
The target to process the event. This is ususally found by the dispatcher |
|
Not implemented yet.
|
Copyright © 2002 by The OGRE Team