Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New feature for GamePad&Joystick control 添加手柄功能 #43

Open
Joyscube opened this issue Nov 17, 2022 · 1 comment
Open

New feature for GamePad&Joystick control 添加手柄功能 #43

Joyscube opened this issue Nov 17, 2022 · 1 comment

Comments

@Joyscube
Copy link

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测试,它能够自己调整按键顺序,所以不存在这个问题!

@aigouzz
Copy link

aigouzz commented Nov 17, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants