fossephate / JoyCon-Driver

A vJoy feeder for the Nintendo Switch JoyCons and Pro Controller
https://fosse.co/latest.zip
MIT License
1.07k stars 196 forks source link

Gyro axes don't change significantly #68

Closed TieSoul closed 6 years ago

TieSoul commented 6 years ago

All gyro axes hang around 50% on my vJoy, only dipping above or below by very slight amounts even as I vigorously swing the joy-con around. When I try to use the gyro controls in dolphin, it doesn't even pick up on them.

TieSoul commented 6 years ago

Worth noting that the preview window and mouse controls work perfectly.

ghost commented 6 years ago

Same here, and it had worked with previous versions from a month or so ago maybe. (Honestly probably longer before that.) It renders Gyro controls on anything other than the mouse useless as vjoy cant change the sliders more than about 1 or 2% off 50%.

fossephate commented 6 years ago

this is what it currently looks like in the code:

float mult = settings.gyroSensitivityX / 100.0f;
iReport.wAxisZRot = 16384 + (jc->gyro.roll * mult);
iReport.wSlider = 16384 + (jc->gyro.pitch * mult);
iReport.wDial = 16384 + (jc->gyro.yaw * mult);

I guess I forgot to update the sensitivity when I changed it everywhere else, I'll also make the sensitivity be able to be negative in the next update, which will fix issue #67