The InputDevice class is the base class for devices such as the 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 the Keyboard and Mouse. It can be subclassed to support other devices.
◆ translateEvent()
virtual const SoEvent* SIM::Coin3D::Quarter::InputDevice::translateEvent |
( |
QEvent * |
event | ) |
|
|
pure virtual |
◆ setMousePosition()
void InputDevice::setMousePosition |
( |
const SbVec2s & |
pos | ) |
|
Sets the mouseposition
- Parameters
-
[in] | pos | position of mouse in pixelcoordinates |
◆ setWindowSize()
void InputDevice::setWindowSize |
( |
const SbVec2s & |
size | ) |
|
Sets the window size of the owning window
- Parameters
-
◆ 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 |
◆ 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: