Skip to content

Commit

Permalink
Add a comment and remove a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cmajed committed Apr 12, 2024
1 parent 0f1448b commit 8a4ce29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/Gamepad.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ module.exports = class Gamepad extends OverlayPlugin {
log.debug('Gamepad plugged');
const gamepad = event.detail;
log.debug(gamepad);
log.debug(gamepad.hostIndex);
this.generateContent();
this.sendGamepadPlugEvent(gamepad.hostIndex, gamepad.name.split(' ').join('_'),
gamepad.vendorID, gamepad.productID);
Expand Down Expand Up @@ -168,6 +167,7 @@ module.exports = class Gamepad extends OverlayPlugin {
}

handleConfirmation(message) {
log.debug('Plugin confirmation');
const values = message.split(' ');
if (values[0] === 'gamepad_plugin_confirmation' && values.length === 3) {
this.instance.gamepadManager.listenForInputs(parseInt(values[1]), parseInt(values[2]));
Expand Down

0 comments on commit 8a4ce29

Please sign in to comment.