Skip to content

Commit

Permalink
dinput: Use GUID_Slider type for dials.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivyl authored and julliard committed Jul 25, 2022
1 parent 50690e0 commit 6719e6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions dlls/dinput/joystick_hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ static const GUID *object_usage_to_guid( USAGE usage_page, USAGE usage )
case HID_USAGE_GENERIC_RY: return &GUID_RyAxis;
case HID_USAGE_GENERIC_RZ: return &GUID_RzAxis;
case HID_USAGE_GENERIC_SLIDER: return &GUID_Slider;
case HID_USAGE_GENERIC_DIAL: return &GUID_Slider;
case HID_USAGE_GENERIC_HATSWITCH: return &GUID_POV;
}
break;
Expand Down
2 changes: 1 addition & 1 deletion dlls/dinput/tests/joystick8.c
Original file line number Diff line number Diff line change
Expand Up @@ -2960,7 +2960,7 @@ static void test_many_axes_joystick(void)
{0},
{0},
{0},
{.guid = TRUE},
{0},
{.flags = TRUE},
{.flags = TRUE},
{.flags = TRUE},
Expand Down

0 comments on commit 6719e6b

Please sign in to comment.