• Image
  • Image
  • Current Version: 0.0.9: 2025-04-25T16:13:03Z
  • First Published: 2024-12-17T06:35:13Z
  • Size: 385088
  • Supported Unity Versions: 2022.3.22
tools input-management

Share InputSystem Device

No rating !(0 Vote)
$13.80 $13.80

This package solves supporting more than one player per device. Use Unity's InputSystem.PlayerInput even when a device is used by multiple players with just 2 steps.


What are the 2 steps!?

1. Matches what you may have seen in multiple "split keyboard" tutorials. Setup your `\*.inputactions` asset to support a different control scheme for each player. For example, control scheme of KeyboardLeft for WASD and KeyboardRight for arrow keys.

2. Add the `PlayerInputCanShareDevice.cs` component to the `PlayerInput` prefab that is referenced by your `PlayerInputManager`.


That's it! PlayerInputCanShareDevice.cs handles leveraging what you setup in '\*.inputactions` to correctly split the device with as many players as you'd like. All while being able to use Unity's PlayerInput and PlayerInputManager for everything else.


Try out a WebGL sample!


Features:

  • Allows any device to support any number of players; 4 players on a keyboard, 2 on a gamepad, etc.
  • Works with Unity's default PlayerInput & PlayerInputManager components.
  • Works with PlayerInputManager join/left system.
  • Works with Unity's button rebinding system.


Add to cart
This site contains affiliate links, which means that we can receive a commission if you click on a link and buy something that we have recommended.
Although clicking on these links will not cost you anything, they will help us finance our development projects while recommending good products!