//this function is not available prior to Windows 8 public static int XInputGetKeystroke ( int dwUserIndex, // Index of the gamer associated with the device int dwReserved, // Reserved for future use ref XInputKeystroke pKeystroke // Pointer to an XINPUT_KEYSTROKE structure that receives an input event. ) { return(0); }
public static extern int XInputGetKeystroke(int userIndex, int reserved, ref XInputKeystroke keystroke);