We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3923 - Some haptic devices fail to be detected due to missing udev scan call
Summary: Some haptic devices fail to be detected due to missing udev scan call
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: haptic (show other bugs)
Version: HG 2.1
Hardware: x86_64 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-27 08:41 UTC by Mai Lavelle
Modified: 2018-08-08 14:24 UTC (History)
1 user (show)

See Also:


Attachments
possible fix (828 bytes, patch)
2017-10-27 08:41 UTC, Mai Lavelle
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mai Lavelle 2017-10-27 08:41:07 UTC
Created attachment 3046 [details]
possible fix

Haptic device numbers above 31 aren't detected, even when their corresponding joystick device is. The joystick code calls SDL_UDEV_Scan to populate the list of devices, but haptic code does not. Adding a call there to SDL_UDEV_Scan fixes the issue.
Comment 1 Ryan C. Gordon 2018-08-08 14:24:56 UTC
This patch is now https://hg.libsdl.org/SDL/rev/ca1bbc8b04a1, thanks!

--ryan.