SLProject
4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
|
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.
Definition at line 20 of file SLInputDevice.h.
|
explicit |
Constructor for SLInputDevices. This will automatically enable the device, adding them to the SLInputManager.
Definition at line 17 of file SLInputDevice.cpp.
|
virtual |
The destructor removes the device from SLInputManager again if necessary.
Definition at line 26 of file SLInputDevice.cpp.
void SLInputDevice::disable | ( | ) |
Enabling an SLInputDevice will remove it from the device list kept by SLInputManager
Definition at line 42 of file SLInputDevice.cpp.
void SLInputDevice::enable | ( | ) |
Enabling an SLInputDevice will add it to the device list kept by SLInputManager
Definition at line 34 of file SLInputDevice.cpp.
|
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 |
Definition at line 34 of file SLInputDevice.h.