ViGEm client connection and virtual gamepad collection.
More...
|
|
client_t | client |
| | ViGEm client connection used to create virtual gamepads.
|
|
std::vector< gamepad_context_t > | gamepads |
| | Virtual gamepads owned by this ViGEm connection.
|
ViGEm client connection and virtual gamepad collection.
◆ alloc_gamepad_internal()
Attaches a new gamepad.
- Parameters
-
| id | The gamepad ID. |
| feedback_queue | The queue for posting messages back to the client. |
| gp_type | The type of gamepad. |
- Returns
- 0 on success.
◆ free_target()
| void platf::vigem_t::free_target |
( |
int | nr | ) |
|
|
inline |
Detaches the specified gamepad.
- Parameters
-
◆ init()
| int platf::vigem_t::init |
( |
| ) |
|
|
inline |
Connect to ViGEm and prepare virtual gamepad slots.
- Returns
- 0 on success; nonzero or negative platform status on failure.
◆ rebind_gamepad()
Route an existing ViGEm gamepad's feedback to a resumed client.
- Parameters
-
| id | Global and client-relative identifiers for the resumed controller. |
| feedback_queue | Queue used to return gamepad feedback to the resumed client. |
- Returns
- 0 when the target exists and was rebound; otherwise -1.
◆ rumble()
| void platf::vigem_t::rumble |
( |
target_t::pointer | target, |
|
|
std::uint8_t | largeMotor, |
|
|
std::uint8_t | smallMotor ) |
|
inline |
Pass rumble data back to the client.
- Parameters
-
| target | The gamepad. |
| largeMotor | The large motor. |
| smallMotor | The small motor. |
◆ set_rgb_led()
| void platf::vigem_t::set_rgb_led |
( |
target_t::pointer | target, |
|
|
std::uint8_t | r, |
|
|
std::uint8_t | g, |
|
|
std::uint8_t | b ) |
|
inline |
Pass RGB LED data back to the client.
- Parameters
-
| target | The gamepad. |
| r | The red channel. |
| g | The red channel. |
| b | The red channel. |
The documentation for this class was generated from the following file: