Skip to content
This repository was archived by the owner on Mar 30, 2019. It is now read-only.

Commit 83537be

Browse files
Update Mapping.xml - fix GamepadButtonsFlags
Change GamepadButtonFlags mapping from type short to int. This fixes an issue with Y flag being incorrectly mapped to Y = short.MinValue. It should be mapped to Y = 32768. Here's the relevant DirectX doc section .. typedef struct _XINPUT_GAMEPAD { WORD wButtons; ...} and this ... XINPUT_GAMEPAD_X 0x4000 XINPUT_GAMEPAD_Y 0x8000
1 parent bbcfa73 commit 83537be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/SharpDX.XInput/Mapping.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
<map enum="XINPUT_CAPS_FLAGS" name="CapabilityFlags" type="short"/>
9595
<map enum-item="XINPUT_CAPS_(.*)" name-tmp="$1"/>
9696

97-
<map enum="XINPUT_GAMEPAD_BUTTON_FLAGS" name="GamepadButtonFlags" flags="true" none="true" type="ushort"/>
97+
<map enum="XINPUT_GAMEPAD_BUTTON_FLAGS" name="GamepadButtonFlags" flags="true" none="true" type="int"/>
9898
<map enum-item="XINPUT_GAMEPAD_(.*)" name-tmp="$1"/>
9999
<map enum-item="XINPUT_GAMEPAD_DPAD_(.*)" name-tmp="D_PAD_$1"/>
100100

0 commit comments

Comments
 (0)