set initial player on joyshocks
This commit is contained in:
parent
d2f4c12453
commit
d2f3eb22e0
|
@ -14,7 +14,7 @@ namespace HeavenStudio.InputSystem
|
||||||
public static InputController[] Initialize()
|
public static InputController[] Initialize()
|
||||||
{
|
{
|
||||||
PlayerInput.PlayerInputCleanUp += DisposeJoyshocks;
|
PlayerInput.PlayerInputCleanUp += DisposeJoyshocks;
|
||||||
|
|
||||||
InputController[] controllers;
|
InputController[] controllers;
|
||||||
int jslDevicesFound = 0;
|
int jslDevicesFound = 0;
|
||||||
int jslDevicesConnected = 0;
|
int jslDevicesConnected = 0;
|
||||||
|
@ -40,6 +40,7 @@ namespace HeavenStudio.InputSystem
|
||||||
{
|
{
|
||||||
Debug.Log("Setting up JoyShock: ( Handle " + i + ", type " + JslGetControllerType(i) + " )");
|
Debug.Log("Setting up JoyShock: ( Handle " + i + ", type " + JslGetControllerType(i) + " )");
|
||||||
InputJoyshock joyshock = new InputJoyshock(i);
|
InputJoyshock joyshock = new InputJoyshock(i);
|
||||||
|
joyshock.SetPlayer(null);
|
||||||
joyshock.InitializeController();
|
joyshock.InitializeController();
|
||||||
controllers[i] = joyshock;
|
controllers[i] = joyshock;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue