Visit the ControllerBuddy Homepage to get started.
For more support, join the ControllerBuddy Discord.
ControllerBuddy is an advanced gamepad mapping software that supports the creation of input profiles for complex target applications such as flight simulators.
In addition to the simple mapping of buttons and axes of a physical game controller to keyboard and mouse input, ControllerBuddy also supports feeding input commands to a virtual joystick device (vJoy / uinput).
The goal of ControllerBuddy is to allow the user to control target applications exclusively with a gamepad without ever having to reach for a keyboard or mouse.
For the easiest way to install and update, use the ControllerBuddy-Install-Script.
It automates all the steps below and much more!
Linux users may want to use the ControllerBuddy-Flatpak.
- First download and install vJoy on your system.
- Click here and download the latest build of ControllerBuddy for Windows as a ZIP archive.
- Extract the
ControllerBuddy
directory from the archive to any desired location on your hard-drive. - Run
ControllerBuddy.exe
inside the extractedControllerBuddy
directory.
- Create a controllerbuddy group:
sudo /usr/sbin/groupadd -f controllerbuddy
- Add yourself to the group:
sudo gpasswd -a "$USER" controllerbuddy
- Allow the group to access uinput:
echo 'KERNEL=="uinput", SUBSYSTEM=="misc", MODE="0660", GROUP="controllerbuddy"' | sudo tee /etc/udev/rules.d/99-controllerbuddy.rules
- Load the uinput kernel module at boot:
echo uinput | sudo tee -a /etc/modules-load.d/uinput.conf
- Reboot
- Click here and download the latest build of ControllerBuddy for Linux as a TGZ archive.
- Extract the
ControllerBuddy
directory from the archive to any desired location on your hard-drive. - Run
ControllerBuddy
inside the extractedControllerBuddy/bin
directory.
- Map gamepad axes and buttons to highly customizable actions:
- vJoy axis movements (absolute and relative)
- vJoy button presses
- Keyboard inputs
- Mouse inputs
- Cycles of actions
- Mode switching
- etc.
- Powerful user interface:
- Allows the creation of mapping profiles
- Configuration of settings
- Support for light and dark UI themes
- In-game overlay:
- Displays current mode
- Can show current position of virtual axes
- On-Screen-Keyboard that can be controlled by gamepad
- Customizable position and colors
- Two modes of operation:
- Local
- Client-Server (experimental! use only in trusted networks!)
- Supported gamepads:
- Xbox 360 Controller
- Xbox One Controller
- Xbox Series X|S Controller
- Dual Shock 3
- Dual Shock 4
- Dual Sense
- etc. (to check if your controller is supported please refer to the SDL_GameControllerDB project)
- Supported operating systems:
- Windows / Linux (local / client / server)
- macOS (server only - no binaries provided!)
- Language support for:
- English
- German
Profiles are used to configure your gamepad for a specific target application.
The general structure of a profile is as follows:
Profile (.json file)
βββ Default Mode
β βββ X Axis
β β βββ some Action
β β βββ another Action
β βββ Y Axis
β β βββ some Action
β βββ A Button
β β βββ some Action
β β βββ another Action
β βββ B Button
β β βββ Switch Mode Action (switches to 'Another Mode' and back)
β βββ X Button
β β βββ Switch Mode Action (switches to 'Yet another Mode' and back)
β βββ Y Button
β βββ Cycle Action (performs 'Action 1', when pressed again 'Action 2', then 'Action 3', then starts over)
β βββ Action 1
β βββ Action 2
β βββ Action 3
βββ Another Mode
β βββ X Axis
β β βββ some Action
β βββ A Button
β βββ some Action
βββ Yet another Mode
βββ X Axis
βββ some Action
When switching from one Mode to another, all the axes and buttons that are not used by the other mode retain their function from the previous mode. This works across multiple levels of modes.
Mode switching can be configured to work in two different ways:
- Default: works like the SHIFT key on your keyboard
- Toggle: works like the Caps Lock key
The ControllerBuddy-Profiles repository contains a number of well-thought-out profiles for many different flight simulators.
Local:
Physical Controller
β
β
βΌ
ControllerBuddy
|
|
βΌ
vJoy + Win32 / uinput
|
|
βΌ
Target Application
Server: Client:
Physical Controller
|
|
βΌ UDP
ControllerBuddy βββββββββββββββββββββΊ ControllerBuddy
|
|
βΌ
vJoy + Win32 / uinput
|
|
βΌ
Target Application
Parameter | Arguments | Description | Available for scripting |
---|---|---|---|
βautostart | local / client / server | starts the specified mode of operation after launch | yes |
βexport | file destination | exports a visualization of the current profile to the specified path | yes |
βgamecontrollerdb | file source | adds the SDL controller mappings from the specified file | yes |
βhelp | prints the help and exits | no | |
-host | hostname / IP address | sets the host address for outgoing network connections | yes |
-password | password | sets the password for all network connections | yes |
-port | port number | sets the server port for all network connections | yes |
βprofile | file source | loads the specified profile after launch | yes |
βquit | quits the application | yes | |
βsave | file destination | save the current profile to the specified path | yes |
βskipMessageDialogs | skips all message dialogs | no | |
-timeout | timeout in milliseconds | sets the timeout in milliseconds for all network connections | yes |
βtray | launches the application in the system tray | yes | |
βversion | prints the version information and exits | no |
If one instance of ControllerBuddy is already running, starting a second instance with the parameters marked as "available for scripting" will trigger the corresponding action in the first instance and shut down the second instance immediately.
This can be used to integrate ControllerBuddy into third party applications.
For more information see ControllerBuddy-DCS-Integration, an exemplary integration of ControllerBuddy into DCS World.
ControllerBuddy makes use of these awesome software technologies and libraries:
- OpenJDK
- Apache Batik
- Apache Commons CLI
- ClassGraph
- dbus-java
- Error Prone
- FlatLaf
- Gson
- LWJGL - Lightweight Java Game Library 3
- SDL_GameControllerDB
- SLF4J
If you want to build ControllerBuddy from source, this section might be helpful to get you started.
ControllerBuddy uses the Gradle build system, the following Gradle tasks are supported:
Task | Command |
---|---|
Generate version source file | gradlew generateVersion |
Run SpotBugs and Spotless | gradlew check |
Apply Spotless formatting | gradlew spotlessApply |
Run ControllerBuddy | gradlew run |
Install a jpackage image | gradlew installDist |
Create a ZIP-compressed jpackage image | gradlew distZip |
Create a TGZ-compressed jpackage image | gradlew distTar |
Delete build and gen directories | gradlew clean |