/xbox-controller-button-remapper

Xbox Controller Button Remapper (Xbox button and/or Share button)

Primary LanguageC++MIT No AttributionMIT-0

Xbox Controller Button Remapper

A small program that runs in the background and sends the configured key(s)/triggers action when the Xbox button and/or Share button is pressed on the controller.

Supports capturing screenshots directly without any other program involved so the button prompts do not change in the game after pressing the Xbox/Share button on the controller to take the screenshot.
Can also capture screenshots using keys on the keyboard.

Can also open any file using keyboard key and/or controller button so the button prompts do not change in the game.

Configure the program using the config.ini file.

Works with the Xbox Series X|S Controller that has the Share button.

Make sure that the controller is updated to the latest firmware version. (Instructions: Update your Xbox Wireless Controller)

Remapping the Xbox button only works when the Open Game Bar using Xbox button on a controller setting is disabled:
Enable or Disable Open Game Bar using Xbox button on Controller in Windows 10
Enable or Disable Open Game Bar using Xbox button on Controller in Windows 11

Remapping the Share button only works when the Windows Game Recording and Broadcasting features are disabled:
Enable or Disable Windows Game Recording and Broadcasting in Windows 10
Enable or Disable Windows Game Recording and Broadcasting in Windows 11

Features

  • Remap Xbox button and/or Share button on the controller to keyboard key(s) and/or function(s)
  • Xbox/Share button long press (hold and release) remapping
  • Multiple controllers are supported
  • Multiple keyboard keys are supported
  • Wait before sending key(s) (delay)
  • Wait before releasing key(s) (duration)
  • Capture screenshots using keyboard key and/or controller button
  • Open file using keyboard key and/or controller button
  • Mute/unmute default recording/input device (microphone) (toggle and push-to-talk) using controller button
  • Configure the program using the config.ini file

Requirements

Download

Download the latest version on the Releases page.

Run automatically at startup

Follow these instructions:

  1. Pin and unpin apps to the Start menu
  2. Add an app to run automatically at startup in Windows 10

Support and Feedback

Available under Discussions.

How to build

  1. Have SDL in the SDL folder:
    SDL\include
    SDL\VisualC\x64\Release
  2. Open the Visual Studio Solution file
  3. Install packages in NuGet Package Manager
  4. Build Solution

Credits

  • Thanks to Microsoft for the Xbox Controller
  • button_on_360_guide (GitHub: 1, 2)
    Thanks to the creator of the original program and the source code that allowed it to be improved.
  • SDL
  • Windows.Graphics.Capture APIs for capturing screenshots (1, 2, 3, 4, 5)