#include <mitkWiiMoteActivator.h>
Public Member Functions | |
WiiMoteActivator () | |
~WiiMoteActivator () | |
bool | RegisterInputDevice () |
bool | UnRegisterInputDevice () |
Definition at line 27 of file mitkWiiMoteActivator.h.
mitk::WiiMoteActivator::WiiMoteActivator | ( | ) |
Definition at line 24 of file mitkWiiMoteActivator.cpp.
: m_IsRegistered(false) //, m_Controller(mitk::WiiMoteVtkCameraController::New()) { }
mitk::WiiMoteActivator::~WiiMoteActivator | ( | ) |
Definition at line 30 of file mitkWiiMoteActivator.cpp.
{ }
bool mitk::WiiMoteActivator::RegisterInputDevice | ( | ) |
Definition at line 34 of file mitkWiiMoteActivator.cpp.
{ //if(!this->m_IsRegistered) //{ // mitk::WiiMoteAddOn::GetInstance()->ActivateWiiMotes(); // mitk::GlobalInteraction::GetInstance()->AddListener(m_Controller); // mitk::EventMapper* eventMapper(mitk::GlobalInteraction::GetInstance()->GetEventMapper()); // if (eventMapper != NULL) // { // eventMapper->AddEventMapperAddOn(mitk::WiiMoteAddOn::GetInstance()); // this->m_IsRegistered = true; // } // else // { // MITK_ERROR << "Eventmapper is not initialized!"; // return false; // } //} return true; }
bool mitk::WiiMoteActivator::UnRegisterInputDevice | ( | ) | [virtual] |
Implements mitk::IInputDevice.
Definition at line 55 of file mitkWiiMoteActivator.cpp.
{ /* if(this->m_IsRegistered) { mitk::WiiMoteAddOn::GetInstance()->DeactivateWiiMotes(); mitk::GlobalInteraction::GetInstance()->RemoveListener(m_Controller); mitk::EventMapper* eventMapper(mitk::GlobalInteraction::GetInstance()->GetEventMapper()); if(eventMapper != NULL) { eventMapper->RemoveEventMapperAddOn(mitk::WiiMoteAddOn::GetInstance()); this->m_IsRegistered = false; } else { MITK_ERROR << "Eventmapper is not initialized!"; return false; } }*/ return true; }