Home > Net >  The acquisition of a xbox controller in uwp how to order?
The acquisition of a xbox controller in uwp how to order?

Time:09-17

Because xbox controller based on usb protocol based on a protocol called xboxgip to communication, so use Windows. The Devices. The usb method under the namespace can not establish the connection with the handle,

Now I know I can through the Windows. Gaming. Input method for standard under the state of the button (press), can also send the custom command to the console ( GipGameControllerProvider. SendMessage ), but I can't get the game the handle returned by the custom command, because my game handle some non-standard features, such as more than standard button button mapping, I need to get the current state of mapping, the other is similar to the function of light

. GipGameControllerProvider SendReceiveMessage looks very much like I want to use the API, but call always throws an exception: does not support the request (exception from HResult: 0 x80070032),

Razer has called a Razer Wolverine for xbox app, they realize the function of this, don't know how to do, they are application of uwp looks can't decompiled

I don't know you a great god have what advice?

CodePudding user response:

Hello?

CodePudding user response:

Hello?

CodePudding user response:

[Talking to USB devices, start to finish (UWP app) - Windows software | Microsoft Docs] (https://docs.microsoft.com/en-us/windows-hardware/drivers/usbcon/talking-to-usb-devices-start-to-finish#walkthroughwriting-uwp-app-for-usb-devices)

CodePudding user response:

The
reference 3 floor lindexi_gd response:
[Talking to USB devices, start to finish (UWP app) - Windows software | Microsoft Docs] (https://docs.microsoft.com/en-us/windows-hardware/drivers/usbcon/talking-to-usb-devices-start-to-finish#walkthroughwriting-uwp-app-for-usb-devices)


Thank you for reply!
But I have mentioned at the beginning of a question: "because xbox controller based on usb protocol based on a protocol called xboxgip to communication, so use Windows. The Devices. The usb method under the namespace can not establish the connection with the handle," so this method is not suitable for me, but thank you for your reply!
  •  Tags:  
  • C#
  • Related