Sirikata
|
Base class for all input events. More...
#include <InputEvents.hpp>
Public Member Functions | |
InputEvent (const InputDeviceWPtr &dev) | |
virtual | ~InputEvent () |
InputDevicePtr | getDevice () const |
Private Attributes | |
InputDeviceWPtr | mDevice |
Base class for all input events.
Call getDevice() to retrieve the specific device that fired the event, and to determine the name of any buttons/axes, or the the meaning of each modifier/scancode.
Sirikata::Input::InputEvent::InputEvent | ( | const InputDeviceWPtr & | dev | ) | [inline] |
virtual Sirikata::Input::InputEvent::~InputEvent | ( | ) | [inline, virtual] |
InputDevicePtr Sirikata::Input::InputEvent::getDevice | ( | ) | const [inline] |
Reimplemented in Sirikata::Input::MouseEvent.
Referenced by Sirikata::Input::MouseEvent::getDevice().