Skip to content

Commit

Permalink
Remove Quit notification
Browse files Browse the repository at this point in the history
  • Loading branch information
sergystepanov committed Sep 24, 2023
1 parent 8703309 commit 226bb03
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions web/js/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,6 @@
case KEY.FULL:
stream.video.toggleFullscreen();
break;

// update player index
case KEY.PAD1:
updatePlayerIndex(0);
break;
Expand All @@ -395,24 +393,15 @@
case KEY.PAD4:
updatePlayerIndex(3);
break;

// toggle multitap
case KEY.MULTITAP:
api.game.toggleMultitap();
break;

// quit
case KEY.QUIT:
input.poll.disable();

api.game.quit(room.getId());
room.reset();

message.show('Quit!');

window.location = window.location.pathname;
break;

case KEY.STATS:
event.pub(STATS_TOGGLE);
break;
Expand Down

0 comments on commit 226bb03

Please sign in to comment.