Port right motor adjustment to linux version
This adapts KrossX' commit c37c5c42e4
so
that we can use it in the linux version, too.
This commit is contained in:
parent
6b1a02e971
commit
fdc3de7870
|
@ -203,7 +203,7 @@ void UpdateVibration(u32 port, u32 value)
|
||||||
|
|
||||||
double pow = (POW_POS + POW_NEG) / 7.0;
|
double pow = (POW_POS + POW_NEG) / 7.0;
|
||||||
double pow_l = pow * (0x3B - FREQ) / 17.0;
|
double pow_l = pow * (0x3B - FREQ) / 17.0;
|
||||||
double pow_r = pow * (FREQ / (double)freq_l);
|
double pow_r = pow * (FREQ - 0x07) / 15.0;
|
||||||
|
|
||||||
if (pow_l > 1.0) pow_l = 1.0;
|
if (pow_l > 1.0) pow_l = 1.0;
|
||||||
if (pow_r > 1.0) pow_r = 1.0;
|
if (pow_r > 1.0) pow_r = 1.0;
|
||||||
|
|
Loading…
Reference in New Issue