mirror of
https://github.com/Ratstail91/Keep-It-Alive.git
synced 2025-11-29 10:34:27 +11:00
19 lines
536 B
C#
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);
|
|
}
|
|
}
|
|
} |