Skip to content

Commit

Permalink
Linux compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
simlrh committed Jul 1, 2016
1 parent 8c50f8a commit d6e2bc0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
target_link_libraries(je_nourish_wiimote wiiuse)
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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!

Expand All @@ -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).
Then follow the [standard OSVR plugin build instructions](http://resource.osvr.com/docs/OSVR-Core/TopicWritingDevicePlugin.html).
2 changes: 1 addition & 1 deletion je_nourish_wiimote.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// Standard includes
#include <iostream>
#define _USE_MATH_DEFINES
#include <Math.h>
#include <math.h>

#define MAX_WIIMOTES 4
#define TRACKERS_PER_WIIMOTE 2
Expand Down

0 comments on commit d6e2bc0

Please sign in to comment.