Skip to content

About

Use multiple mice or keyboards as separate input sources

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

54 Commits

Folders and files

Repository files navigation

UnityMultiInput

Getting started

Just download this repo as zip, unpack it somewhere and import it as a package into your Unity 2022+ project.
To interact with the input devices, you need to get the instance of the MarkusSecundus.MultiInput.IInputProvider singleton - like this: IInputProvider.Instance.

All the available devices can be obtained as elements of IInputProvider.Instance.ActiveMice/ActiveKeyboards, their available methods and properties mimick those of standard UnityEngine.Input.

Devices become available at the time the player first interacts with them (first keypress, mouse movement registered etc.).

Limitations...

  • Only Windows platform is currently fully supported. The package builds on other platforms, but uses a fallback implementation that just redirects to standard Unity input and thus always sees only one compound input source of each kind.
  • Mouse cursors currently don't support automatic raycasting into Canvas UI
  • Still no time to write proper documentation and comments for intellisense
  • Probably lot more stuff

About

Use multiple mice or keyboards as separate input sources

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages