Skip to content

Commit

Permalink
Woops
Browse files Browse the repository at this point in the history
  • Loading branch information
Namaneo committed Sep 20, 2023
1 parent cf0f0c5 commit 5dbcc7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/sources/services/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ export default class Input {
const move = !!['mousemove', 'touchmove'].find(type => type == touch.type);
const pressed = start || (move && prev_touch && prev_touch.pressed);

if (button?.id) {
if (button) {
messages.push({ device: Input.Device.JOYPAD, id: button.id, value: pressed });
this.#touches[touch.id] = { id: button?.id, pressed };
this.#touches[touch.id] = { id: button.id, pressed };

} else {
delete this.#touches[touch.id];
Expand Down

0 comments on commit 5dbcc7e

Please sign in to comment.