New feature for GamePad&Joystick control 添加手柄功能
Author: JoyscubeCreated Nov 17, 2022Updated Nov 17, 2022
Hello Chvin,
We added GamePad control for this wonderful Tetris game, maybe it isn't good enough but it works well in my Chrome browser:) Only changed this file: src/control/index.js https://github.com/chvin/react-tetris/commit/1e31eed7aaa19446f9f5ebd60cd42640d1bb7c8f
我添加了手柄功能来方便大家用手柄玩这个完美的游戏,在我的Chrome 浏览器上运行效果还不错。 可能需要调整按键的顺序来适配不同的手柄,我们自己是用Joyscube测试,它能够自己调整按键顺序,所以不存在这个问题!
Source: chvin/react-tetris