Skip to content

A python script to use a controller as mouse and keyboard.

License

Notifications You must be signed in to change notification settings

sandstorm12/ControllerPy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ControllerPy

A python script to use a controller as mouse and keyboard.

Currently only working on linux (test on ubuntu 20).

For keyboard input, an on screen keyboarded name onboard is used.

Note

This is a personal project under development. All feature requests and issues and appreciated.

Comments

  1. "Xlib.threaded" is imported but never used. The import is to fix an issues xlib has with multi-threaded usage.
  2. You can change sensitivty and dead-zone parameters in the config.yaml file.

Installation

sudo apt install onboard

python3 -m pip install git+https://github.com/sandstorm12/ControllerPy.git

Run

Put the config.yaml file at your current path in terminal

controllerpy

Urgent issues and futures

  1. Add a list of used libraries to the main readme
  2. Make the config file a system argument
  3. Add a default layout
  4. Generate default config file
  5. Test with Dual Shock controller

Issues and futures

  1. Add Windows support
  2. Make config file custom and createable from cli
  3. Add cli interface
  4. Add version cli option
  5. List controllers using cli options
  6. Add vibration feedback (no pygame support)
  7. Support analog trigger
  8. Add multi-key press support
  9. Add more keyboard keys
  10. Add on start-up launch support
  11. Auto detect and report controller connection and disconnection

Contributors

  1. Hamid Mohammadi: sandstormeatwo@gmail.com

About

A python script to use a controller as mouse and keyboard.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages