static public string GetName(int device_index)
        {
            JoystickCapabilities capabilities = JoystickExtensions.GetCapabilities(device_index);

            return("Buttons: {0}, Axises: {1}, Hats: {2}".Inject(
                       capabilities.ButtonCount,
                       capabilities.AxisCount,
                       capabilities.HatCount
                       ));
        }
Example #2
0
 public string GetName()
 {
     return(JoystickExtensions.GetName(device_index));
 }
Example #3
0
 public override float GetRawValue()
 {
     return(JoystickExtensions.GetState(device_index).GetAxis(axis_index));
 }
 public override VectorI2 GetRawValue()
 {
     return(JoystickExtensions.GetState(device_index).GetHat(hat_index).GetVectorI2());
 }
Example #5
0
 public override bool GetRawValue()
 {
     return(JoystickExtensions.GetState(device_index).IsButtonDown(button_index));
 }