kopia lustrzana https://gitlab.com/eliggett/wfview
Fix problem if USB_CONTROLLER isn't enabled
rodzic
f86a721a05
commit
8f5016a2f4
|
@ -15,11 +15,13 @@
|
|||
#include <QGamepad>
|
||||
#endif
|
||||
|
||||
#if defined(USB_CONTROLLER)
|
||||
#ifndef Q_OS_WIN
|
||||
#include "hidapi/hidapi.h"
|
||||
#else
|
||||
#include "hidapi.h"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef Q_OS_WIN
|
||||
//Headers needed for sleeping.
|
||||
|
|
|
@ -14,7 +14,7 @@ QT += core gui serialport network multimedia xml
|
|||
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport
|
||||
|
||||
contains(DEFINES,USB_CONTROLLER){
|
||||
contains(DEFINES,USB_CONTROLLERS){
|
||||
lessThan(QT_MAJOR_VERSION, 6): QT += gamepad
|
||||
}
|
||||
|
||||
|
@ -175,7 +175,7 @@ linux:LIBS += -L./ -l$$QCPLIB -lopus
|
|||
!linux:LIBS += -l$$QCPLIB -lopus
|
||||
macx:LIBS += -framework CoreAudio -framework CoreFoundation -lpthread -lopus
|
||||
|
||||
contains(DEFINES,USB_CONTROLLER){
|
||||
contains(DEFINES,USB_CONTROLLERS){
|
||||
linux:LIBS += -L./ -l$$QCPLIB -lhidapi-libusb
|
||||
macx:LIBS += -framework CoreAudio -framework CoreFoundation -lhidapi
|
||||
win32:INCLUDEPATH += ../hidapi/hidapi
|
||||
|
|
Ładowanie…
Reference in New Issue