Skip to content

About

Wireless (Bluetooth) Xbox controllers for Split/Second on PC: a DirectInput proxy that makes any Xbox pad look like a wired Xbox 360 controller

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Split/Second PadFix: wireless Xbox controllers for Split/Second (PC)

Split/Second (Black Rock Studio, 2010) only understands one kind of controller properly: a wired Xbox 360 pad. Connect a modern Xbox controller over Bluetooth (Xbox One, Series X|S, Elite Series 2) and the game either reads it wrong or reads it fine and ignores every press. PadFix is a small drop-in DLL that makes any Microsoft controller look exactly like a wired Xbox 360 pad to the game, so it works wirelessly with the game's own Xbox controls.

  • Xbox button names in the prompts: "PRESS A", "TAP LT TO DRIFT" instead of "PRESS Button 1", "TAP Axis Z Pos TO DRIFT". Renamed in memory, so it works on the Steam release too.
  • Split-screen: each Xbox controller the game opens reads its own pad.
  • No game files are modified. Delete the two DLLs and the game is back to stock.
  • Keyboard and mouse are untouched.
  • Works alongside SplitSecond-HFR (60 FPS).

Status

Version 1.1.0, early. It has been tested on one PC with one controller, so please read this before relying on it.

Tested (Windows 11, an Xbox Elite Series 2 over Bluetooth LE, together with SplitSecond-HFR):

  • The community DLC build: menus and driving.
  • The Steam release (SplitSecond.exe 1.0.0.1 with the Steam release's Resident.ark): about a minute at the menus. The controller was picked up and translated, and the Xbox names were in the game's text table 2 seconds after start (checked by reading the game's memory from outside).
  • Xbox button names on both builds: renamed 2 seconds after start with the final build, and an offline stress test (100+ runs of padtest --names) passes. How every prompt looks on screen hasn't been reviewed one by one.
  • Split-screen order only with one pad: a second Xbox device correctly reads "no pad" (padtest, see Building).

Not tested yet (expected to work, but nobody has confirmed it):

  • Driving on the Steam release, and the Steam release with all of its own data files.
  • Split-screen with two real controllers. If the players come out swapped, set ReversePadOrder=1.
  • Other controllers: Xbox One S and Series X|S controllers over Bluetooth, any Xbox controller over USB or the Xbox Wireless Adapter, and a wired Xbox 360 pad (which works without PadFix, but is also translated with it).
  • Rumble. The game's rumble calls are forwarded to the modern XInput, but nobody has checked that they arrive.
  • Steam Input turned on for the game. Steam's virtual controller isn't a Microsoft device, so PadFix leaves it alone and the game would see Steam's controller instead.
  • Linux / Steam Deck (Proton). Wine needs to be told to use the DLLs: WINEDLLOVERRIDES="dinput8,xinput1_3=n,b" %command%.
  • Windows 10.

Known limitations:

  • Split-screen pairs controllers by order, not by identity: the game's first Xbox controller reads the first connected XInput pad, its second the second. Windows doesn't say which DirectInput device is which XInput pad, so the two can come out swapped (ReversePadOrder=1 flips them).
  • Microsoft controllers only (USB vendor ID 045E). PlayStation, 8BitDo and other pads are passed through unchanged, so they behave exactly as without PadFix.
  • The triggers share one axis, as they do on a wired Xbox 360 pad in DirectInput, which is what the game's Xbox controls are built on: holding both triggers at once cancels them out.
  • Button names are English only and text, not icons.

It doesn't work for me

Please open an issue and include:

  • Steam release or DLC build (the first lines of the SplitSecond-HFR log say which, if you use it);
  • the controller model and how it's connected (Bluetooth, USB cable, Xbox Wireless Adapter);
  • Windows version, and whether Steam Input is on for the game;
  • padfix.log from the game folder, with Verbose=1.

Reports that it does work on an untested setup are just as useful: they let this list shrink.

Install

  1. Download SplitSecond-PadFix-v1.1.0.zip from Releases.
  2. Copy dinput8.dll, xinput1_3.dll and padfix.ini into the game folder (Steam → right-click Split/Second → Manage → Browse local files), next to SplitSecond.exe.
  3. Connect the controller (Bluetooth is fine), then start the game.

If the controller worked before as an unknown device, the game may have saved an empty layout for it: open Options → Controls and reset the controller to its defaults once.

Uninstall: delete dinput8.dll, xinput1_3.dll, padfix.ini and padfix.log from the game folder.

Configuration (padfix.ini)

Key Default Meaning
Translate 1 Build the controller's reading from XInput in the wired Xbox 360 layout. 0 = pass it through untouched.
PretendWired360 1 Introduce the controller to the game as a wired Xbox 360 pad (045E:028E), the only way the game gives it the Xbox default controls.
SwapTriggers 0 Swap LT and RT on the shared trigger axis, in case accelerate and brake come out reversed (the LT/RT names follow).
XboxButtonNames 1 Show Xbox names in prompts (A, LT, LS LEFT, D-PAD...) instead of DirectInput's ("Button 1", "Axis Z Pos"...).
ReversePadOrder 0 Split-screen: hand out the XInput pads in reverse order, if the two players' controllers come out swapped.
Verbose 1 Log the game's controller calls and the first 60 input changes to padfix.log.

Why the controller doesn't work

Three things stack up:

  1. The game reads controllers through DirectInput, not XInput. Its only XInput import is XInputSetState (rumble). Every button press and stick movement is read with IDirectInputDevice8::GetDeviceState into a DIJOYSTATE2.
  2. The DirectInput layout of a Bluetooth Xbox controller is not the Xbox 360 one. A wired 360 pad (the xusb driver) reports X/Y = left stick, Z = both triggers on one axis, Rx/Ry = right stick, buttons 0-9 = A B X Y LB RB Back Start LS RS and POV 0 = D-pad. A Bluetooth Xbox controller is a HID device with its own layout (separate triggers, the right stick on other axes, a different button order), so the game's Xbox mapping lands on the wrong inputs.
  3. The game picks default controls by exact product ID. For every controller it compares DirectInput's guidProduct with a hard-coded table: 045E:028E (wired Xbox 360) and 045E:02A1 (Xbox 360 wireless receiver) get the Xbox control map. Thirteen Logitech, Saitek, Thrustmaster and other wheels and pads get their own maps. Anything else gets a generic type with no default bindings. An Elite Series 2 over Bluetooth is 045E:0B22, so even with the right layout, every press was read and then mapped to nothing.

The game also runs Microsoft's well-known IsXInputDevice WMI check (device IDs containing IG_), but it only stores the result in a per-device flag that nothing reads, so it doesn't matter here.

How PadFix fixes it

dinput8.dll is a proxy for the system DirectInput (Windows loads DLLs from the game folder first). It forwards everything to the real dinput8.dll in the system folder, except for game controllers made by Microsoft (VID 045E):

  • Identity: in EnumDevices and GetDeviceInfo the controller is reported as Controller (XBOX 360 For Windows) with product GUID {028E045E-0000-0000-0000-504944564944}, so the game assigns it the Xbox 360 control map.
  • Input: GetDeviceState (and GetDeviceData, if a game uses buffered input) is answered from XInputGetState (xinput1_4), written in the exact wired-360 DirectInput layout. The game's first Xbox controller reads the first connected XInput pad, the second the second (empty slots are re-checked once a second, because asking XInput about an empty slot is slow). Values honour the ranges, dead zones and saturation the game sets per axis. Axes, POVs and buttons a 360 pad doesn't have read 0 or centred, as they would on the real thing.
  • Everything else (acquire, cooperative level, effects, properties) still goes to the real device, so focus handling and identity checks behave normally.

xinput1_3.dll exports the same functions and ordinals as the DirectX-redist xinput1_3 and forwards them to the system's xinput1_4, so the game's rumble calls reach the modern XInput stack. It also counts the calls for the log.

Xbox button names

The game fills its hints ("STEER *ACTION_TURN_L* AND TAP *ACTION_BREAK* TO DRIFT") with the display name of the bound input, from its English text table. For a controller those are DirectInput names: "Button 1", "Axis Z Pos", "Pov Button 1". A background thread finds that table in the game's memory once it has loaded (about 2 seconds in) and renames the 22 entries in place: Button 1-10 → A B X Y LB RB VIEW MENU "LS CLICK" "RS CLICK", Pov Button 1 → D-PAD, Axis X/Y → LS LEFT/RIGHT/UP/DOWN, Axis Z → LT/RT, Right Axis X/Y → RS ..., and the keyboard's "RMenu" → "RAlt". Every name is overwritten with a shorter one padded with NULs, so nothing else in the table moves.

Memory also holds stale copies of the table in freed blocks, and the game can hand such a block out again at any moment, so writing to a match found a moment earlier could land on live data. PadFix therefore searches read-only (without allocating anything), then pauses the game's other threads, checks each match again, writes, and resumes them, all in well under a millisecond. It only touches the game's private read-write memory. After the rename it checks twice more (10 s and 60 s later) in case another copy is loaded, then stops, so nothing runs during races. SplitSecond-ButtonNames does the same rename in the DLC build's game files instead; with both, PadFix sees the names already done and does nothing.

Logs and troubleshooting

padfix.log (next to the DLLs, readable while the game runs) records each session: the settings, the devices the game enumerates, the data format and properties it sets, and with Verbose=1 the first 60 input changes with the values the game was given, for example:

[di]   enum: "Bluetooth LE XINPUT compatible input device" type 00010215 product 0B22045E -> shown to the game as a wired Xbox 360 pad (045E:028E)
[di] Bluetooth LE XINPUT compatible input device SetDataFormat: 272 bytes, 164 objects, flags 00000001 (real hr 00000000)
[pad] buttons 1000 LT   0 RT   0 L(  -299,   228) R( -1297,   429) -> game sees X   -299 Y   -228 Z      0 POV -1
  • No enum: line for the controller: Windows doesn't see it as a game controller. Check it in joy.cpl.
  • XInput reports no pad connected: the controller went to sleep or disconnected. Press the Xbox button.
  • Presses show in the log but do nothing in game: reset the controller's controls in Options → Controls.
  • Accelerate and brake reversed: set SwapTriggers=1.

Building

Requirements: Visual Studio 2022 or 2026 (or the Build Tools) with the C++ workload and a Windows 10/11 SDK, plus CMake 3.25 or newer. The game is 32-bit, so build for Win32 with a Visual Studio generator:

cmake -S . -B build -G "Visual Studio 17 2022" -A Win32
cmake --build build --config Release

(Use -G "Visual Studio 18 2026" for Visual Studio 2026.)

This produces build/Release/dinput8.dll, xinput1_3.dll and padtest.exe, which checks a build without the game:

  • padtest <path to dinput8.dll> [seconds] [devices] loads the proxy the way the game does and prints what a game would read (identity, axes, POVs, buttons). With devices 2 it opens the first controller twice, like split-screen: the second should read the second pad, or nothing.
  • padtest <path to dinput8.dll> --names plants a copy of the game's input-name table in its own memory and checks that the proxy renames it (exit code 0 = pass).

License

GNU General Public License v3.0, see LICENSE. Not affiliated with Disney Interactive, Black Rock Studio or Microsoft. Split/Second and Xbox are trademarks of their respective owners.

About

Wireless (Bluetooth) Xbox controllers for Split/Second on PC: a DirectInput proxy that makes any Xbox pad look like a wired Xbox 360 controller

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages