input.cxx
)
+set(HEADERS
+ FGButton.hxx
+ FGCommonInput.hxx
+ FGDeviceConfigurationMap.hxx
+ FGEventInput.hxx
+ FGJoystickInput.hxx
+ FGKeyboardInput.hxx
+ FGMouseInput.hxx
+ input.hxx
+ )
+
if(EVENT_INPUT)
list(APPEND SOURCES ${EVENT_INPUT_SOURCES})
include_directories(${DBUS_INCLUDE_DIR} ${DBUS_ARCH_INCLUDE_DIR})
${PLIB_LIBRARIES}
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES})
-flightgear_component(Input "${SOURCES}")
+flightgear_component(Input "${SOURCES}" "${HEADERS}")
install(TARGETS fgjs js_demo RUNTIME DESTINATION bin)
if (num_node != 0) {
n_axis = num_node->getIntValue(TGT_PLATFORM, -1);
+ #ifdef SG_MAC
+ // Mac falls back to Unix by default - avoids specifying many
+ // duplicate <mac> entries in joystick config files
+ if (n_axis < 0) {
+ n_axis = num_node->getIntValue("unix", -1);
+ }
+ #endif
+
// Silently ignore platforms that are not specified within the
// <number></number> section
- if (n_axis < 0)
- continue;
+ if (n_axis < 0) {
+ continue;
+ }
}
if (n_axis >= naxes) {