mirror of https://github.com/PCSX2/pcsx2.git
LilyPad: Fix for non-pressure sensitive buttons with dead zone < 0.0625 or so.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1918 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
8bc0ffaefb
commit
2193e5aec6
|
@ -606,7 +606,9 @@ void ChangeValue(int port, int slot, int *newSensitivity, int *newTurbo, int *ne
|
||||||
b->sensitivity = *newSensitivity;
|
b->sensitivity = *newSensitivity;
|
||||||
}
|
}
|
||||||
if (newDeadZone) {
|
if (newDeadZone) {
|
||||||
b->deadZone = *newDeadZone;
|
if (b->deadZone) {
|
||||||
|
b->deadZone = *newDeadZone;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (newTurbo) {
|
if (newTurbo) {
|
||||||
b->turbo = *newTurbo;
|
b->turbo = *newTurbo;
|
||||||
|
@ -1143,12 +1145,15 @@ int BindCommand(Device *dev, unsigned int uid, unsigned int port, unsigned int s
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (!sensitivity) sensitivity = BASE_SENSITIVITY;
|
if (!sensitivity) sensitivity = BASE_SENSITIVITY;
|
||||||
|
if ((uid>>16) & (PSHBTN|TGLBTN)) {
|
||||||
|
deadZone = 0;
|
||||||
|
}
|
||||||
else if (!deadZone) {
|
else if (!deadZone) {
|
||||||
if (dev->api != DS3 || !((uid>>16) & PRESSURE_BTN)) {
|
if ((uid>>16) & PRESSURE_BTN) {
|
||||||
deadZone = DEFAULT_DEADZONE;
|
deadZone = 1;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
deadZone = 1;
|
deadZone = DEFAULT_DEADZONE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Relative axes can have negative sensitivity.
|
// Relative axes can have negative sensitivity.
|
||||||
|
|
Loading…
Reference in New Issue