mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-31 14:29:14 +08:00
Port libusb hid.c to SDL, add to MinGW configure
This commit is contained in:
@@ -24121,10 +24121,6 @@ CheckHIDAPI()
|
|||||||
# The hidraw support doesn't catch Xbox, PS4 and Nintendo controllers,
|
# The hidraw support doesn't catch Xbox, PS4 and Nintendo controllers,
|
||||||
# so we'll just use libusb when it's available.
|
# so we'll just use libusb when it's available.
|
||||||
case "$host" in
|
case "$host" in
|
||||||
# TODO: Windows can support libusb, the hid.c file just depends on Unix APIs
|
|
||||||
*-*-cygwin* | *-*-mingw32* )
|
|
||||||
skiplibusb=yes
|
|
||||||
;;
|
|
||||||
# libusb does not support iOS
|
# libusb does not support iOS
|
||||||
arm*-apple-darwin* | *-ios-* )
|
arm*-apple-darwin* | *-ios-* )
|
||||||
skiplibusb=yes
|
skiplibusb=yes
|
||||||
|
|||||||
@@ -3205,10 +3205,6 @@ CheckHIDAPI()
|
|||||||
# The hidraw support doesn't catch Xbox, PS4 and Nintendo controllers,
|
# The hidraw support doesn't catch Xbox, PS4 and Nintendo controllers,
|
||||||
# so we'll just use libusb when it's available.
|
# so we'll just use libusb when it's available.
|
||||||
case "$host" in
|
case "$host" in
|
||||||
# TODO: Windows can support libusb, the hid.c file just depends on Unix APIs
|
|
||||||
*-*-cygwin* | *-*-mingw32* )
|
|
||||||
skiplibusb=yes
|
|
||||||
;;
|
|
||||||
# libusb does not support iOS
|
# libusb does not support iOS
|
||||||
arm*-apple-darwin* | *-ios-* )
|
arm*-apple-darwin* | *-ios-* )
|
||||||
skiplibusb=yes
|
skiplibusb=yes
|
||||||
|
|||||||
+100
-147
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user