Hello,
Does anyone know if Rewired can detect mouse movement when the mouse is not the active controller?
AddLastActiveControllerChangedDelegate only detect buttons.
I would like the mouse to become the active controller when the active controller is a joystick.
Thank you.
Yes it can. “Active Controller” means nothing than the last controller that was used. It does not determine whether input is processed or not.
There are two completely separate “Active Controller” concepts in Rewired. It is important to know to which you are referring:
https://guavaman.com/projects/rewired/docs/HowTos.html#last-used-controller
The ReInput methods will get the last active controller of all controllers regardless of whether or not it is assigned to a Player or any of the elements have been mapped. This is most useful for one-player games.
The Player.controllers.GetLastActiveController method will get the last active controller used by that Player. Be aware that only mapped elements determine whether a Controller just became active. For example, if you’re testing to see if the mouse is the last active controller, if nothing is mapped to the left mouse button and it is clicked, it will not be considered the last active controller in the Player.
If you are using the Player version and you have not mapped any Actions to the mouse axes, the mouse cannot become the active controller. The Player version works on Action values. Controller Elements mapped to nothing cannot produce Action values.