Skip to content

Commit

Permalink
gamepad stick
Browse files Browse the repository at this point in the history
  • Loading branch information
rndD committed Sep 24, 2024
1 parent 7153f31 commit d20ea69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/character.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export class Character extends GameObject {
super.update();
// movement control
let moveInput = isUsingGamepad
? gamepadStick(0)
? gamepadStick(1)
: vec2(
// @ts-ignore
keyIsDown(ArrowRight) - keyIsDown(ArrowLeft),
Expand Down

0 comments on commit d20ea69

Please sign in to comment.