@harry said in Controlling DS4 input programmatically (PC):
All calls but one seem to be working fine. Specifically, VIGEM_API BOOL vigem_target_is_attached(PVIGEM_TARGET target); never returns true, even when the target is actually attached and I can send reports to it. Perhaps I got the API wrong?
Oh? That's odd, it's expected to return TRUE
when the bus has brought it to working stage. This application uses the API so I suspect it to function properly
@harry said in Controlling DS4 input programmatically (PC):
Isn't that API call supposed to be used right after a vigem_target_add call (with polling for instance) to ensure that the device is attached before starting to send reports?
vigem_target_add
is blocking until the device is truly operational and calling vigem_target_is_attached
afterwards is expected to return TRUE
.
Cheers