Skip to main content

MIT License PyPI version

Controller Companion

Easily create controller shortcuts to perform actions on your computer, such as using the controller to quit a game (that does not have a quit option), control the volume, or toggle full screen.

The following actions are supported

  • Terminate a task by its name.
  • Execute a keyboard shortcut.
  • Execute any console command.

Features

  • GUI and CLI options available
  • Supports a wide range of controllers (those supported by pygame)
  • Runs on Windows, Linux and Mac
  • Autostart app on system startup (Windows only for now)
  • GUI app can be compiled as standalone executable (using PyInstaller)

Screenshots

Main Window

demo

Create a new shortcut

demo

How to install

  • Using pip:
    pip install controller-companion
    
  • For the GUI version, executables are also available here for Windows, Mac and Linux. An installer is also available for Windows.

How to run

  • CLI and GUI versions available
  • CLI:
    • Multiple shortcuts can be created.

    • One or multiple input controller key combination that triggers an action can be defined using --input. The keys of one individual input combination are separated by commas, while each distinct input combination is separated by a space.

    • One or multiple actions can be defined using either --task-kill, --console or --shortcut. These actions will be mapped to the previously defined controller --input key combinations in the order --task-kill, --console and finally --shortcut

    • Example with 2 shortcuts:

      controller_companion --input A,B Back,Left --console explorer.exe --shortcut alt+f4
      

      will result in the following mapping:

      ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━┓
      ┃ Name                       ┃ Shortcut  ┃ Action       ┃ Type ┃
      ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━┩
      │ Run command "explorer.exe" │ A+B       │ explorer.exe │ Xbox │
      │ Shortcut "alt+f4"          │ Back+Left │ alt+f4       │ Xbox │
      └────────────────────────────┴───────────┴──────────────┴──────┘
      
    • Run controller_companion --help to see all available arguments

Build Executable

With poetry installed, run the following command to build the executable using PyInstaller:

poetry run build_controller_companion_executable

Credits

Release files for controller-companion 0.7.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for controller-companion 0.7.6
File Size Uploaded
controller_companion-0.7.6.tar.gz 418.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for controller-companion 0.7.6
File Interpreter ABI Platform
controller_companion-0.7.6-py3-none-any.whl Python 3 none any Details

Total release size: 851.2 kB

Release files / controller_companion-0.7.6.tar.gz

Download URL controller_companion-0.7.6.tar.gz
Size 418.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4cff926d2cec8589ab5a7d3d98f13c752b78e5b12d77a4387a08f42a8ad2ed75
BLAKE2b-256 checksum
How to use checksums
67854c08f667e306f066268fa109edbc26f52d601a01c8f4d302927c3829ed90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 10, 2025.

Transparency log

Release files / controller_companion-0.7.6-py3-none-any.whl

Download URL controller_companion-0.7.6-py3-none-any.whl
Size 433.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
148d14ff01a160f36d2c5b96586dd38b8b5fc6be361ac2231abd7b7d372afb88
BLAKE2b-256 checksum
How to use checksums
43343fb48a1bd582418a5e222d16496a9cec36aa8097169853d0dc4aef0c87d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 10, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.7.6 This release

2 release files

0.7.5

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page