#include <InputSubSystem.h>

Public Member Functions | |
| InputSubSystem () | |
| ~InputSubSystem () | |
| virtual void | vInitialize (tPropertyBagPtr configSection) |
| virtual void | vShutdown () |
| virtual const std::string | vGetSubSystemName () |
| void | HandleUpdateEvent (const tIEventPtr &e) |
| void | HandleSetInputTranslatorEvent (const tIEventPtr &e) |
Private Attributes | |
| boost::scoped_ptr< Impl > | mImpl |
| EventConnectionManager | mConns |
Classes | |
| class | Impl |
Definition at line 44 of file InputSubSystem.h.
| InputSubSystem::InputSubSystem | ( | ) |
Definition at line 201 of file InputSubSystem.cpp.
00201 : ISubSystem(), mImpl(new Impl()), mConns() { 00202 }
| InputSubSystem::~InputSubSystem | ( | ) |
| void InputSubSystem::vInitialize | ( | tPropertyBagPtr | configSection | ) | [virtual] |
Implements pcce::ISubSystem.
Definition at line 207 of file InputSubSystem.cpp.
References pcce::EventConnectionManager::AddHandler(), pcce::Singleton< T >::Get(), HandleSetInputTranslatorEvent(), HandleUpdateEvent(), mConns, mImpl, and pcce::EventType< T >::sGetEventType().
00207 { 00208 shared_ptr< RequestWindowHandleEvent > windowHandleEvent(new RequestWindowHandleEvent); 00209 00210 mConns.AddHandler( 00211 UpdateSubSystemEvent::sGetEventType(), 00212 bind(&InputSubSystem::HandleUpdateEvent, this, _1)); 00213 mConns.AddHandler( 00214 SetInputTranslatorEvent::sGetEventType(), 00215 bind(&InputSubSystem::HandleSetInputTranslatorEvent, this, _1)); 00216 00217 windowHandleEvent->WindowHandle = "NaN"; 00218 EventSystemSingleton::Get()->DispatchEvent(windowHandleEvent); 00219 00220 mImpl->Initialize(windowHandleEvent->WindowHandle); 00221 00222 }
| void InputSubSystem::vShutdown | ( | ) | [virtual] |
Implements pcce::ISubSystem.
Definition at line 224 of file InputSubSystem.cpp.
References mImpl.
00224 { 00225 mImpl->ShutDown(); 00226 }
| virtual const std::string pcce::InputSubSystem::vGetSubSystemName | ( | ) | [inline, virtual] |
| void InputSubSystem::HandleUpdateEvent | ( | const tIEventPtr & | e | ) |
Definition at line 228 of file InputSubSystem.cpp.
References mImpl.
Referenced by vInitialize().
00228 { 00229 mImpl->Update(); 00230 }
| void InputSubSystem::HandleSetInputTranslatorEvent | ( | const tIEventPtr & | e | ) |
Definition at line 232 of file InputSubSystem.cpp.
References mImpl.
Referenced by vInitialize().
00232 { 00233 shared_ptr< SetInputTranslatorEvent > inputTrans = dynamic_pointer_cast< SetInputTranslatorEvent >(e); 00234 mImpl->SetInputTranslator(inputTrans->GetInputTranslator()); 00235 }
boost::scoped_ptr< Impl > pcce::InputSubSystem::mImpl [private] |
Definition at line 59 of file InputSubSystem.h.
Referenced by HandleSetInputTranslatorEvent(), HandleUpdateEvent(), vInitialize(), and vShutdown().
1.5.5