Skip to content

Commit

Permalink
Ripple state got lost in a merge. Reintroduce.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhobi committed Mar 29, 2021
1 parent 23914f8 commit 17d49d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/device/razerdevicekeyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export class RazerDeviceKeyboard extends RazerDevice {
}

setRippleEffect(featureConfiguration, color, backgroundColor) {
this.setModeState('ripple', [featureConfiguration, color, backgroundColor]);
this.stopAnimations();
this.rippleAnimation = new RazerAnimationRipple(this, featureConfiguration, color, backgroundColor);
this.rippleAnimation.start();
Expand Down
2 changes: 1 addition & 1 deletion src/main/statemanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export class StateManager {
device.setStarlight(state.args);
break;
case 'ripple':
device.setRippleEffect(state.args[0], state.args[1]);
device.setRippleEffect(state.args[0], state.args[1], state.args[2]);
break;
default:
console.error('Unknown State mode ' + state.mode);
Expand Down

0 comments on commit 17d49d3

Please sign in to comment.