Skip to content

a python script which can transfer real joystick input to vertual gamepad. This is only work on windows(vgamepad module is only work on windows).

Notifications You must be signed in to change notification settings

chenxi-Eumenides/joystick_to_vgamepad_python_script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

joystick_to_vgamepad_python_script

English introduce

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脚本(基于pygamevgamepad模块),可以通过菜单和按键两种方式触发宏。

目前只支持window平台(因为vgamepad模块只支持windows)。

didn`t finished !! 没完成!!

How to use

1. install modules

pip install vgamepad
pip install pygame
# or
pip install -r requirements.txt

2. download scripts

git clone https://github.com/chenxi-Eumenides/joystick_to_vgamepad_python_script.git

or download all files use Web browsers.
或者通过浏览器下载所有文件

3. start

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()

4. macro

todo

5. language

todo

ToDoList

English

  • 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

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.

About

a python script which can transfer real joystick input to vertual gamepad. This is only work on windows(vgamepad module is only work on windows).

Resources

Stars

Watchers

Forks

Languages