Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vibrate on DualShock4 #11

Open
UKTailwind opened this issue Dec 23, 2023 · 2 comments
Open

Vibrate on DualShock4 #11

UKTailwind opened this issue Dec 23, 2023 · 2 comments

Comments

@UKTailwind
Copy link

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();
}
@gorbit99
Copy link
Owner

Truth be told, I don't have a DS4 on hand right now to test. But is this on windows or linux or what system exactly?

@UKTailwind
Copy link
Author

Sorry - should have said W11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants