This is a python script (based on the pygame and vgamepad modules) that allows any gamepad to support macros, which can be triggered by both menus and keystrokes.
Currently only windows is supported (because the vgamepad module only supports Windows).
这是一个让任何手柄支持宏功能的python脚本(基于pygame和vgamepad模块),可以通过菜单和按键两种方式触发宏。
目前只支持window平台(因为vgamepad模块只支持windows)。
pip install vgamepad
pip install pygame
# or
pip install -r requirements.txt
git clone https://github.com/chenxi-Eumenides/joystick_to_vgamepad_python_script.git
or download all files use Web browsers.
或者通过浏览器下载所有文件
Run this file directly.
直接运行脚本
python path/to/vgamepad.py
# replace path/to/vgamepad.py to your file path
create a new python file.
新建一个python文件
from .vgamepad import Virtual_Gamepad
vg = Virtual_Gamepad()
# vg.log = True # if you want
# vg.script_manager.add_script(...) # add script if you want # not finished
vg.start()
todo
todo
- Get joystick input
- Virtual joystick output
- Macro support (v0.3 seems to be working, but I'm not sure how many bugs it has)
- Record macros (v0.3 can only be recorded into txt files, you need to write macros according to txt)
- Hover window interface
- The macro menu is fully implemented with the joystick
- Multi-language support (Translate language files by yourself lol~)
- 获取手柄输入
- 虚拟手柄输出
- 支持宏 (v0.3貌似能正常用了, 但我不确定有多少bug)
- 录制宏 (v0.3只能录制成txt文件, 需要自己根据txt写宏)
- 悬浮窗界面
- 完全用手柄实现宏菜单的操作
- 多语言支持 (自己翻译语言文件捏~)
Thanks for vgamepad module. i use it to create a virtual gamepad.
Thanks for pygame module. i use it to get real joystick input.
Thanks for chatgpt. i am not a professional developer and chatgpt has helped me a lot.
Thanks for pyinstaller.