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

use MouseEvent in keybind change hooks

This commit is contained in:
Dimava
2020-05-30 10:57:02 +03:00
parent e58c2fd371
commit 79dcd79734
2 changed files with 26 additions and 1 deletions

View File

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