diff options
Diffstat (limited to 'tracker-wii')
-rw-r--r-- | tracker-wii/wii_camera.cpp | 6 | ||||
-rw-r--r-- | tracker-wii/wii_frame.hpp | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/tracker-wii/wii_camera.cpp b/tracker-wii/wii_camera.cpp index b8b370ab..93dfe4ff 100644 --- a/tracker-wii/wii_camera.cpp +++ b/tracker-wii/wii_camera.cpp @@ -84,13 +84,11 @@ WIICamera::result WIICamera::get_frame(pt_frame& frame_) return { true, cam_info }; } -bool WIICamera::start(int idx, int fps, int res_x, int res_y) +bool WIICamera::start(int, int, int, int) { m_pDev = std::make_unique<wiimote>(); m_pDev->ChangedCallback = on_state_change; - m_pDev->CallbackTriggerFlags = (state_change_flags)(CONNECTED | - EXTENSION_CHANGED | - MOTIONPLUS_CHANGED); + m_pDev->CallbackTriggerFlags = (state_change_flags)(CONNECTED|EXTENSION_CHANGED |MOTIONPLUS_CHANGED); return true; } diff --git a/tracker-wii/wii_frame.hpp b/tracker-wii/wii_frame.hpp index 31967d10..2107646b 100644 --- a/tracker-wii/wii_frame.hpp +++ b/tracker-wii/wii_frame.hpp @@ -59,7 +59,7 @@ private: bool fresh = true; cv::Mat frame_copy, frame_color, frame_resize, frame_out; - wii_camera_status status; + wii_camera_status status = wii_cam_wait_for_dongle; }; } // ns pt_module |