mirror of
https://github.com/Ratstail91/Keep-It-Alive.git
synced 2025-11-29 10:34:27 +11:00
Working on it
This commit is contained in:
19
Assets/CarbonInput/Scripts/ControllerInstance.cs
Normal file
19
Assets/CarbonInput/Scripts/ControllerInstance.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user