WindowsDevicePortalWrapper icon indicating copy to clipboard operation
WindowsDevicePortalWrapper copied to clipboard

GamePad A, B, X, Y button presses are not going through

Open bindusadu opened this issue 6 years ago • 1 comments

byte[] array = new byte[] { 0x01, 0xC4, 0x01, 0x00 }; - sending this byte array does not activate gamepad B Using similar byte array message for moveDown (VK_GAMEPAD_DPAD_DOWN | 0xCC) works as expected.

Reference - https://docs.microsoft.com/en-us/windows/uwp/xbox-apps/uwp-remoteinput-api

bindusadu avatar Oct 03 '18 00:10 bindusadu

Can you try sending { 0x01, 0xC4, 0x01 } followed by { 0x01, 0xC4, 0x00 } ? I believe with some gamepad buttons actions happen on button up instead of button down, and that first message will send the press, but the button won't get the associated release (I believe it will get released when the websocket is closed still though).

WilliamsJason avatar Oct 03 '18 15:10 WilliamsJason