diff --git a/CMakeLists.txt b/CMakeLists.txt index bc51840..adc89f8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,9 @@ set(BUILD_EXAMPLE_SDL OFF CACHE BOOL "Should we build the SDL-based example app? set(INSTALL_EXAMPLES OFF CACHE BOOL "Should we install the example apps?") list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/vendor/wiiuse/cmake") +SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") +SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC") + add_subdirectory("vendor/wiiuse") osvr_convert_json(je_nourish_wiimote_json @@ -27,4 +30,4 @@ osvr_add_plugin(NAME je_nourish_wiimote "${CMAKE_CURRENT_BINARY_DIR}/je_nourish_wiimote_json.h") # If you use other libraries, find them and add a line like: -target_link_libraries(je_nourish_wiimote wiiuse) \ No newline at end of file +target_link_libraries(je_nourish_wiimote wiiuse) diff --git a/README.md b/README.md index 0c13749..16e8124 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# OSVR Wiimote Plugin {#WiimotePluginReadme} +# OSVR Wiimote Plugin -An OSVR plugin providing up to four Wii Remote + Nuncuk devices via the wiiuse library. There's one orientation only tracker per wiimote or nunchuk, although yaw is only available if using the sensor bar. +An OSVR plugin providing up to four Wii Remote + Nunchuk devices via the wiiuse library. There's one orientation only tracker per wiimote or nunchuk, although yaw is only available if using the sensor bar. Default mappings are for one wiimote in the right hand and nunchuk in the left, but it's more fun with a nunchuk in each hand! @@ -9,4 +9,4 @@ Default mappings are for one wiimote in the right hand and nunchuk in the left, git submodule init git submoule update -Then follow the [standard OSVR plugin build instructions](http://resource.osvr.com/docs/OSVR-Core/TopicWritingDevicePlugin.html). \ No newline at end of file +Then follow the [standard OSVR plugin build instructions](http://resource.osvr.com/docs/OSVR-Core/TopicWritingDevicePlugin.html). diff --git a/je_nourish_wiimote.cpp b/je_nourish_wiimote.cpp index 3700e4c..e50233f 100644 --- a/je_nourish_wiimote.cpp +++ b/je_nourish_wiimote.cpp @@ -13,7 +13,7 @@ // Standard includes #include #define _USE_MATH_DEFINES -#include +#include #define MAX_WIIMOTES 4 #define TRACKERS_PER_WIIMOTE 2