Skip to content

Vibrate on DualShock4  #11

@UKTailwind

Description

@UKTailwind

Vibrate is not working for me on a DualShock4, is this to be expected or is it me? The routine I'm using is below and this is called just after I read the analogue values and the buttons which works perfectly. Vibrate is a float between 0.0 and 1.0 and prints when changed as expected so I know the routine is being called.

if (vibrate!= lastvibrate) {
	printf("%f", vibrate);
	lastvibrate = vibrate;
	if(vibrate>0.0)gamepad->startVibration(vibrate);
	else gamepad->stopVibration();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions