SLProject 4.0.000
|
Interface for input devices that have to be pollsed. More...
#include <SLInputDevice.h>
Public Member Functions | |
SLInputDevice (SLInputManager &inputManager) | |
virtual | ~SLInputDevice () |
void | enable () |
void | disable () |
virtual SLbool | poll ()=0 |
Private Attributes | |
SLInputManager & | _inputManager |
Interface for input devices that have to be pollsed.
|
explicit |
Constructor for SLInputDevices. This will automatically enable the device, adding them to the SLInputManager.
|
virtual |
The destructor removes the device from SLInputManager again if necessary.
void SLInputDevice::disable | ( | ) |
Enabling an SLInputDevice will remove it from the device list kept by SLInputManager
void SLInputDevice::enable | ( | ) |
Enabling an SLInputDevice will add it to the device list kept by SLInputManager
|
pure virtual |
Polls a custom input device. returns true if the poll resulted in event's being sent out that were accepted by some receiver.
|
private |