Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Jun 22, 2024
1 parent 39a5190 commit bbbce10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/runtime/src/navigator/gamepad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ def(GamepadHapticActuator);
export function gamepadNew(index: number) {
const g = proto($.gamepadNew(index), Gamepad);
// @ts-expect-error Readonly prop
g.mapping = 'standard';
// @ts-expect-error Readonly prop
g.buttons = Array(16);
for (let i = 0; i < 16; i++) {
// @ts-expect-error Readonly array
Expand Down

0 comments on commit bbbce10

Please sign in to comment.