Beispiel #1
0
 public void Update()
 {
     prev_state = curr_state;
     if (XInput.XInputGetState(index, ref curr_state) != 0x0) //0x0 is ERROR_SUCCESS
     {
         curr_state.Gamepad.Zero();
     }
 }
Beispiel #2
0
 public void Vibrate(XInputVibration vibration)
 {
     XInput.XInputSetState(index, ref vibration);
 }