Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

10 Commits

Repository files navigation

Command Mapper

A small python3 programm to map shell commands and python3 code to your controller through the inputs library

Usage

  1. Grab the latest version of Command Mapper from the releases tab and unzip it to a folder
  2. Install python 3 (i use python 3.9) and execute pip install -r requirements.txt
  3. Now simply run the programm with pythonmain.py

Bindings

You can edit your bindings in the inputs.json file
When a command starts with (@PY) it will be executed as python 3 code else it will be executed as a shell command.

Button Mapping

Button NameXBox One
BTN_SOUTHA
BTN_NORTHY
BTN_WESTX
BTN_EASTB
BTN_SELECTBottom right of XBox Logo
BTN_STARTBottom left of XBox Logo
BTN_THUMBRRight thumbstick click
BTN_THUMBLLeft thumbstick click
BTN_TRRB
BTN_TLLB
ABS_HAT0YDPad up and down
ABS_HAT0XDPad left and right

Example

{
"BTN_SOUTH": [
"git init",
"(@PY)print(\"South\")"
],
"BTN_WEST": [
"(@PY)print(\"West\")"
]
}

Credits

Inputs by zeth used to acces the controller inputs: https://github.com/zeth/inputs

About

A small python3 programm to map shell commands and python3 code to your controller through the inputs library

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages