Commit graph

16 commits

Author SHA1 Message Date
Timothy Z.
7637620ac5 gamepad: add lock unlock on dom 2026-04-29 17:25:35 +03:00
Timothy Z.
5079af1c8d refactor: support auto controller detection 2026-04-29 15:57:40 +03:00
Timothy Z.
aac69c43db typing improvements 2026-04-29 13:21:09 +03:00
Timothy Z.
4b6b0058fa refactor: code quality improvments 2026-04-29 13:20:14 +03:00
Timothy Z.
70e14c4871 refactor: improve navigation 2026-04-28 23:49:46 +03:00
Timothy Z.
0b601010e2 fix: tests + stale callbacks 2026-04-28 22:57:33 +03:00
Timothy Z.
f95273b8ce feat: add controller guide 2026-04-28 22:31:33 +03:00
Timothy Z.
93833d0cd1 fixes
1. Player.js — Added optional chaining (gamepad?.on/gamepad?.off) to prevent null crash
  2. GamepadProvider.tsx — Toast messages now use t('GAMEPAD_CONNECTED') / t('GAMEPAD_DISCONNECTED') via i18next, added keys to en-US.json
  3. useVerticalNavGamepadNavigation.tsx — Fixed event.nativeEvent?.spatialNavigationPrevented → event.spatialNavigationPrevented (native DOM events don't have nativeEvent)
  4. GamepadProvider.tsx — Changed connectedGamepads from useState to useRef to avoid rAF effect restart cycle, removed it from effect deps, simplified the enabled guard
2026-04-28 17:09:02 +03:00
Botzy
d84e0f849f fix: added copyright 2025-04-01 16:29:45 +03:00
Botzy
8c612d951f fix(GamepadProvider): fix issue with getting latest event handler array element for older node versions 2025-04-01 16:18:44 +03:00
Botzy
1474d18c83 fix: linting & errors 2025-04-01 15:45:02 +03:00
Botzy
bc81bd1fc8 fix(GamepadProvider): prevent emitting more than one event handler at a time 2025-04-01 15:22:48 +03:00
Botzy
41865276d5 fix(GamepadSupport): fix issue with multiple handler events being fired 2025-03-25 19:07:01 +02:00
Botzy
b36ebcb4c6 feat(GamesupportProvider): improve logic for enabling gamepad support 2025-03-24 17:10:37 +02:00
Botzy
5927b17e87 feat(GamesupportProvider): add enabled prop to start/stop gamepad support 2025-03-24 17:09:09 +02:00
Botzy
4617d030aa feat(GamepadProvider): added Gamepad context and provider 2025-03-24 13:37:39 +02:00