refactor: correct the gamepad lock id

This commit is contained in:
Timothy Z. 2026-04-29 17:33:31 +03:00
parent 7637620ac5
commit 12af0e1d5e

View file

@ -132,10 +132,10 @@ const GamepadProvider = ({ enabled, onGuide, children }: GamepadProviderProps) =
useEffect(() => {
if (onGuide) {
on('buttonX', 'gamepad-guide', onGuide);
on('buttonX', 'guide', onGuide);
}
return () => {
off('buttonX', 'gamepad-guide');
off('buttonX', 'guide');
};
}, [onGuide]);