Edit

kc3-lang/SDL/src/hidapi/libusb

Branch :

  • Show log

    Commit

  • Author : Steven Noonan
    Date : 2021-04-22 15:44:01
    Hash : 17d8479d
    Message : hidapi/libusb: maintain in-memory cache of vendor/product strings The get_usb_string call is rather expensive on some USB devices, so we cache the vendor/product strings for future lookups (e.g. when hid_enumerate is invoked again later). This way, we only need to ask libusb for strings for devices we haven't seen since before we started. Signed-off-by: Steven Noonan <steven@valvesoftware.com> Signed-off-by: Sam Lantinga <slouken@libsdl.org>