Fix controls

This commit is contained in:
OleSTEEP 2024-01-23 17:16:49 +03:00
parent ffbf62b1cf
commit 098ed36a3a
9 changed files with 10 additions and 11 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 598 B

After

Width:  |  Height:  |  Size: 666 B

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 644 B

After

Width:  |  Height:  |  Size: 684 B

Before After
Before After

View file

@ -52,7 +52,7 @@
z-index: 1488;
position: absolute;
bottom: 16px;
right: 16px;
right: 32px;
justify-content: center;
align-items: center;

View file

@ -29,10 +29,10 @@ function create_control_buttons() {
// LB-RB Buttons
const DivB_LB = document.createElement("div");
DivB_LB.className = "gamepad-bumper LB";
DivB_LB.id = "buttonW";
DivB_LB.id = "buttonQ";
const DivB_RB = document.createElement("div");
DivB_RB.className = "gamepad-bumper RB";
DivB_RB.id = "buttonQ";
DivB_RB.id = "buttonW";
// Adding
document.body.appendChild(DivB_LB);
@ -211,10 +211,10 @@ const keys = [
{ key: 'Z', keyCode: 90 },
{ key: 'X', keyCode: 88 },
{ key: 'Shift', keyCode: 16 },
{ key: 'A', keyCode: 87 },
{ key: 'A', keyCode: 65 },
{ key: 'Q', keyCode: 81 },
{ key: 'W', keyCode: 68 }
{ key: 'W', keyCode: 87 }
];
const dpadkeys = [