add joysick support and state feedback
This commit is contained in:
@ -10,14 +10,16 @@ TARGET = traincontrollerui
|
||||
TEMPLATE = app
|
||||
|
||||
INCLUDEPATH += /usr/include/libnl3/
|
||||
INCLUDEPATH += /usr/include/SDL2/
|
||||
|
||||
LIBS += -lnl-3 -lnl-genl-3
|
||||
LIBS += -lnl-3 -lnl-genl-3 -lSDL2
|
||||
|
||||
# The following define makes your compiler emit warnings if you use
|
||||
# any feature of Qt which as been marked as deprecated (the exact warnings
|
||||
# depend on your compiler). Please consult the documentation of the
|
||||
# deprecated API in order to know how to port your code away from it.
|
||||
DEFINES += QT_DEPRECATED_WARNINGS
|
||||
DEFINES += SDL_SUPPORTED
|
||||
|
||||
QMAKE_CXXFLAGS += -std=c++17 -O2
|
||||
|
||||
@ -25,6 +27,10 @@ SOURCES += \
|
||||
src/items/train.cpp \
|
||||
src/items/turnout.cpp \
|
||||
src/mainobject.cpp \
|
||||
src/trainjs.cpp \
|
||||
src/QJoysticks.cpp \
|
||||
src/jsbackend/SDL_Joysticks.cpp \
|
||||
src/jsbackend/VirtualJoystick.cpp \
|
||||
src/ui/itemwidget.cpp \
|
||||
src/ui/itemscrollbox.cpp \
|
||||
src/ui/mainwindow.cpp \
|
||||
@ -37,6 +43,11 @@ HEADERS += \
|
||||
src/items/train.h \
|
||||
src/items/turnout.h \
|
||||
src/mainobject.h \
|
||||
src/trainjs.h \
|
||||
src/QJoysticks.h \
|
||||
src/jsbackend/SDL_Joysticks.h \
|
||||
src/jsbackend/VirtualJoystick.h \
|
||||
src/jsbackend/JoysticksCommon.h \
|
||||
src/ui/itemwidget.h \
|
||||
src/ui/itemscrollbox.h \
|
||||
src/ui/mainwindow.h \
|
||||
|
Reference in New Issue
Block a user