The InputDevice class is the base class for devices such as keyboard and mouse. It can be subclassed to support other devices.
More...
#include <Quarter/devices/InputDevice.h>
The InputDevice class is the base class for devices such as keyboard and mouse. It can be subclassed to support other devices.
◆ setModifiers()
void InputDevice::setModifiers |
( |
SoEvent * | soevent, |
|
|
const QInputEvent * | qevent ) |
Transforms a QEvent into an SoEvent
- Parameters
-
[in,out] | SoEvent | the transformed event |
[in] | QEvent | incoming QEvent |
◆ setMousePosition()
void InputDevice::setMousePosition |
( |
const SbVec2s & | pos | ) |
|
Sets the mouse position
- Parameters
-
[in] | pos | position of mouse in pixel coordinates |
◆ setWindowSize()
void InputDevice::setWindowSize |
( |
const SbVec2s & | size | ) |
|
Sets the window size of the owning window
- Parameters
-
◆ translateEvent()
virtual const SoEvent * SIM::Coin3D::Quarter::InputDevice::translateEvent |
( |
QEvent * | event | ) |
|
|
pure virtual |
◆ mousepos
Holds the last known position of the mouse. This should be set even for a keyboard event.
◆ windowsize
Holds the size of the owning window
The documentation for this class was generated from the following files: