SLProject 4.0.000
SLInputDevice Class Referenceabstract

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
 

Detailed Description

Interface for input devices that have to be pollsed.

Constructor & Destructor Documentation

◆ SLInputDevice()

SLInputDevice::SLInputDevice ( SLInputManager inputManager)
explicit

Constructor for SLInputDevices. This will automatically enable the device, adding them to the SLInputManager.

◆ ~SLInputDevice()

SLInputDevice::~SLInputDevice ( )
virtual

The destructor removes the device from SLInputManager again if necessary.

Member Function Documentation

◆ disable()

void SLInputDevice::disable ( )

Enabling an SLInputDevice will remove it from the device list kept by SLInputManager

◆ enable()

void SLInputDevice::enable ( )

Enabling an SLInputDevice will add it to the device list kept by SLInputManager

◆ poll()

virtual SLbool SLInputDevice::poll ( )
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.

Member Data Documentation

◆ _inputManager

SLInputManager& SLInputDevice::_inputManager
private

The documentation for this class was generated from the following files: