PixelLightAPI
.
|
Input manager. More...
#include <InputManager.h>
Public Member Functions | |
PLINPUT_API void | Update () |
Update input manager once per frame. | |
PLINPUT_API void | DetectDevices (bool bReset=false) |
Detect devices. | |
PLINPUT_API const PLCore::List < Provider * > & | GetProviders () const |
Get list of input providers. | |
PLINPUT_API PLCore::List < Provider * > & | GetProviders () |
Get list of detected input providers. | |
PLINPUT_API Provider * | GetProvider (const PLCore::String &sProvider) |
Get a specific input provider. | |
PLINPUT_API PLCore::List < Device * > & | GetDevices () |
Get list of devices. | |
PLINPUT_API Device * | GetDevice (const PLCore::String &sDevice) const |
Get a specific device. | |
PLINPUT_API Keyboard * | GetKeyboard () const |
Get default keyboard device. | |
PLINPUT_API Mouse * | GetMouse () const |
Get default mouse device. | |
Static Public Member Functions | |
static PLINPUT_API InputManager * | GetInstance () |
static PLINPUT_API bool | HasInstance () |
Public Attributes | |
PLCore::Event< bool > | EventOnDetectDevices |
PLCore::Event< Controller *, PLCore::String > | EventInputControllerFound |
Input manager.
static PLINPUT_API InputManager* PLInput::InputManager::GetInstance | ( | ) | [static] |
static PLINPUT_API bool PLInput::InputManager::HasInstance | ( | ) | [static] |
PLINPUT_API void PLInput::InputManager::Update | ( | ) |
Update input manager once per frame.
PLINPUT_API void PLInput::InputManager::DetectDevices | ( | bool | bReset = false | ) |
Detect devices.
[in] | bReset | If 'true', delete all input devices and re-detect them all. Otherwise, only new and removed input devices will be detected. |
PLINPUT_API const PLCore::List<Provider*>& PLInput::InputManager::GetProviders | ( | ) | const |
Get list of input providers.
PLINPUT_API PLCore::List<Provider*>& PLInput::InputManager::GetProviders | ( | ) |
Get list of detected input providers.
PLINPUT_API Provider* PLInput::InputManager::GetProvider | ( | const PLCore::String & | sProvider | ) |
Get a specific input provider.
[in] | sProvider | Name of provider |
PLINPUT_API PLCore::List<Device*>& PLInput::InputManager::GetDevices | ( | ) |
Get list of devices.
PLINPUT_API Device* PLInput::InputManager::GetDevice | ( | const PLCore::String & | sDevice | ) | const |
Get a specific device.
[in] | sDevice | Name of device |
PLINPUT_API Keyboard* PLInput::InputManager::GetKeyboard | ( | ) | const |
Get default keyboard device.
PLINPUT_API Mouse* PLInput::InputManager::GetMouse | ( | ) | const |
Get default mouse device.
Called when device detection has started or stopped
An input controller has been found. Use this event to for instance connect the input controller to real input devices. Found input controller as first parameter, input semantic as second parameter.
|