1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

change MouseEvent keyCode to event.button + 1

This commit is contained in:
Dimava
2020-05-30 11:11:26 +03:00
parent 79dcd79734
commit d5d615bfd3
3 changed files with 10 additions and 10 deletions

View File

@@ -86,15 +86,15 @@ for (const categoryId in KEYMAPPINGS) {
*/
export function getStringForKeyCode(code) {
switch (code) {
case 0:
return "LMB";
case 1:
return "MMB";
return "LMB";
case 2:
return "RMB";
return "MMB";
case 3:
return "MB4";
return "RMB";
case 4:
return "MB4";
case 5:
return "MB5";
case 8:
return "⌫";