Stores services that allow the software to access physical hardware controllers that can be used with the system.
More...
|
| void | addController (ControllerInterface *joystick) |
| | Registers a controller with the manager.
|
|
void | controllerConnectionsChangedSignal () |
| | Emitted when controllers are added or removed.
|
| const Dictionary< UUID, ControllerInterface * > & | controllers () const |
| | Returns the dictionary of all registered controllers.
|
|
void | findControllersSignal () |
| | Emitted to request a scan for new controllers.
|
| void | removeController (UUID id) |
| | Removes a controller from the manager by its unique identifier.
|
| void | setDefaultWindowInstance (WindowInstance *default_window_instance) |
| | Sets the default window instance for input routing to all controllers.
|
|
void | updateStates () |
| | Polls all registered controllers and updates their input states.
|
|
|
Thread * | m_controller_thread = nullptr |
| | Background thread for polling controller state.
|
|
Dictionary< UUID, ControllerInterface * > | m_controllers |
| | Map of controller UUIDs to their interfaces.
|
|
WindowInstance * | m_default_window_instance = nullptr |
| | Default window instance for input routing.
|
Stores services that allow the software to access physical hardware controllers that can be used with the system.
Definition at line 228 of file ControllerInterface.h.
◆ addController()
Registers a controller with the manager.
- Parameters
-
| [in] | joystick | The controller to add. |
◆ controllers()
Returns the dictionary of all registered controllers.
- Returns
- A const reference to the UUID-to-ControllerInterface map.
◆ Default()
| ControllerInterfaceManager & ControllerInterfaceManager::Default |
( |
| ) |
|
|
static |
◆ removeController()
| void ControllerInterfaceManager::removeController |
( |
UUID | id | ) |
|
Removes a controller from the manager by its unique identifier.
- Parameters
-
| [in] | id | The UUID of the controller to remove. |
◆ setDefaultWindowInstance()
| void ControllerInterfaceManager::setDefaultWindowInstance |
( |
WindowInstance * | default_window_instance | ) |
|
Sets the default window instance for input routing to all controllers.
- Parameters
-
| [in] | default_window_instance | The window instance to use as default. |
The documentation for this class was generated from the following file: