Linux fixes for HID-input
This commit is contained in:
parent
edc1d63b26
commit
407a6d4b3e
3 changed files with 5 additions and 2 deletions
3
3rdparty/hidapi/CMakeLists.txt
vendored
3
3rdparty/hidapi/CMakeLists.txt
vendored
|
@ -21,6 +21,9 @@ add_library(hidapi STATIC
|
||||||
${HIDAPI_SOURCES}
|
${HIDAPI_SOURCES}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
target_link_libraries(hidapi ${UDEV_LIBRARIES})
|
||||||
|
|
||||||
|
|
||||||
target_include_directories(hidapi PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/hidapi)
|
target_include_directories(hidapi PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/hidapi)
|
||||||
target_include_directories(hidapi PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
target_include_directories(hidapi PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
|
||||||
|
|
|
@ -73,7 +73,7 @@ endif()
|
||||||
if (ENABLE_HID_INPUT)
|
if (ENABLE_HID_INPUT)
|
||||||
if (COMMAND flightgear_test)
|
if (COMMAND flightgear_test)
|
||||||
set(HID_INPUT_TEST_SOURCES test_hidinput.cxx FGEventInput.cxx
|
set(HID_INPUT_TEST_SOURCES test_hidinput.cxx FGEventInput.cxx
|
||||||
FGCommonInput.cxx FGDEviceConfigurationMap.cxx)
|
FGCommonInput.cxx FGDeviceConfigurationMap.cxx)
|
||||||
|
|
||||||
flightgear_test(hidinput "${HID_INPUT_TEST_SOURCES}")
|
flightgear_test(hidinput "${HID_INPUT_TEST_SOURCES}")
|
||||||
target_link_libraries(hidinput ${EVENT_INPUT_LIBRARIES} hidapi)
|
target_link_libraries(hidinput ${EVENT_INPUT_LIBRARIES} hidapi)
|
||||||
|
|
|
@ -42,7 +42,7 @@ struct FGLinuxEventData : public FGEventData {
|
||||||
class FGLinuxInputDevice : public FGInputDevice {
|
class FGLinuxInputDevice : public FGInputDevice {
|
||||||
public:
|
public:
|
||||||
FGLinuxInputDevice();
|
FGLinuxInputDevice();
|
||||||
FGLinuxInputDevice( std::string name, std::string devname );
|
FGLinuxInputDevice( std::string name, std::string devname, std::string aSerial );
|
||||||
virtual ~FGLinuxInputDevice();
|
virtual ~FGLinuxInputDevice();
|
||||||
|
|
||||||
virtual void Open();
|
virtual void Open();
|
||||||
|
|
Loading…
Add table
Reference in a new issue