Files
Keep-It-Alive/Assets/CarbonInput/Scripts/ControllerInstance.cs
2020-04-18 18:14:51 +10:00

19 lines
536 B
C#

namespace CarbonInput {
public class ControllerInstance {
public CarbonController Controller;
public int Index;
public ControllerInstance(CarbonController controller, int index) {
Controller = controller;
Index = index + 1;
}
public bool GetButton(CButton button) {
return Controller.GetButton(button, Index);
}
public float GetAxis(CAxis axis) {
return Controller.GetAxis(axis, Index);
}
}
}