Commit b3cc2542 authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

xinput: Clear instance data when a controller is hotplugged.

parent 5417c3bf
......@@ -195,6 +195,9 @@ static BOOL init_controller(xinput_controller *controller, PHIDP_PREPARSED_DATA
memcpy(private->device_path, device_path, size);
private->enabled = TRUE;
memset(&controller->state, 0, sizeof(controller->state));
memset(&controller->vibration, 0, sizeof(controller->vibration));
controller->platform_private = private;
controller->connected = TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment