mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-21 20:45:30 +02:00
Minor fixes
This commit is contained in:
@@ -697,6 +697,8 @@ typedef union {
|
|||||||
}
|
}
|
||||||
_physicallyConnected = false;
|
_physicallyConnected = false;
|
||||||
[exposedControllers removeObject:self];
|
[exposedControllers removeObject:self];
|
||||||
|
[self setRumbleAmplitude:0];
|
||||||
|
[self updateRumble];
|
||||||
_device = nil;
|
_device = nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -734,6 +736,9 @@ typedef union {
|
|||||||
if (!self.connected) {
|
if (!self.connected) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!_rumbleElement && !_isSwitch && !_isDualShock3) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (_rumbleElement.max == 1 && _rumbleElement.min == 0) {
|
if (_rumbleElement.max == 1 && _rumbleElement.min == 0) {
|
||||||
double ampToSend = _rumbleCounter < round(_rumbleAmplitude * PWM_RESOLUTION);
|
double ampToSend = _rumbleCounter < round(_rumbleAmplitude * PWM_RESOLUTION);
|
||||||
if (ampToSend != _sentRumbleAmp) {
|
if (ampToSend != _sentRumbleAmp) {
|
||||||
|
Reference in New Issue
Block a user