예제 #1
0
파일: XInput.cs 프로젝트: peon501/GTA2.NET
 public static int XInputSetState
 (
     int dwUserIndex,               // [in] Index of the gamer associated with the device
     ref XInputVibration pVibration // [in, out] The vibration information to send to the controller
 )
 {
     return(IsWin8OrNewer ? XInput14.XInputSetState(dwUserIndex, ref pVibration) : XInput910.XInputSetState(dwUserIndex, ref pVibration));
 }
예제 #2
0
파일: XInput.cs 프로젝트: peon501/GTA2.NET
 public static int XInputGetState
 (
     int dwUserIndex,       // [in] Index of the gamer associated with the device
     ref XInputState pState // [out] Receives the current state
 )
 {
     return(IsWin8OrNewer ? XInput14.XInputGetState(dwUserIndex, ref pState) : XInput910.XInputGetState(dwUserIndex, ref pState));
 }
예제 #3
0
파일: XInput.cs 프로젝트: peon501/GTA2.NET
 //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(IsWin8OrNewer ? XInput14.XInputGetKeystroke(dwUserIndex, dwReserved, ref pKeystroke) : XInput910.XInputGetKeystroke(dwUserIndex, dwReserved, ref pKeystroke));
 }
예제 #4
0
파일: XInput.cs 프로젝트: peon501/GTA2.NET
 //this function is not available prior to Windows 8
 public static int XInputGetBatteryInformation
 (
     int dwUserIndex,                                 // Index of the gamer associated with the device
     byte devType,                                    // Which device on this user index
     ref XInputBatteryInformation pBatteryInformation // Contains the level and types of batteries
 )
 {
     return(IsWin8OrNewer ? XInput14.XInputGetBatteryInformation(dwUserIndex, devType, ref pBatteryInformation) : XInput910.XInputGetBatteryInformation(dwUserIndex, devType, ref pBatteryInformation));
 }
예제 #5
0
파일: XInput.cs 프로젝트: peon501/GTA2.NET
 public static int XInputGetCapabilities
 (
     int dwUserIndex,                     // [in] Index of the gamer associated with the device
     int dwFlags,                         // [in] Input flags that identify the device type
     ref XInputCapabilities pCapabilities // [out] Receives the capabilities
 )
 {
     return(IsWin8OrNewer ? XInput14.XInputGetCapabilities(dwUserIndex, dwFlags, ref pCapabilities) : XInput910.XInputGetCapabilities(dwUserIndex, dwFlags, ref pCapabilities));
 }