Пример #1
0
 /// <summary>
 /// Detects whether or not we have already hooked into XInputGetState().
 /// </summary>
 /// <returns></returns>
 public bool IsGamepadHooked()
 {
     if (Xbox.History.XInputGetStateAddress == 0)
     {
         return(false);
     }
     return(Xbox.GetByte(Xbox.History.XInputGetStateAddress) == 0x68); // test for "push   dword ptr ds:[address]"
 }