|
int | alloc_gamepad_internal (const gamepad_id_t &id, feedback_queue_t &feedback_queue, VIGEM_TARGET_TYPE gp_type) |
| Attaches a new gamepad.
|
|
void | free_target (int nr) |
| Detaches the specified gamepad.
|
|
int | init () |
|
void | rumble (target_t::pointer target, std::uint8_t largeMotor, std::uint8_t smallMotor) |
| Pass rumble data back to the client.
|
|
void | set_rgb_led (target_t::pointer target, std::uint8_t r, std::uint8_t g, std::uint8_t b) |
| Pass RGB LED data back to the client.
|
|
| ~vigem_t () |
| vigem_t destructor.
|
|
◆ alloc_gamepad_internal()
int platf::vigem_t::alloc_gamepad_internal |
( |
const gamepad_id_t & | id, |
|
|
feedback_queue_t & | feedback_queue, |
|
|
VIGEM_TARGET_TYPE | gp_type ) |
|
inline |
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
-
◆ 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: