Skip to content

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

Description

@Joyscube

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions