00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #include "OSDLInputDevice.h"
00028
00029
00030 #include "OSDLController.h"
00031
00032
00033 using std::string ;
00034
00035 using namespace OSDL::Events ;
00036
00037
00038
00039
00040 InputDevice::InputDevice() :
00041 Ceylan::InputDevice()
00042 {
00043
00044 }
00045
00046
00047
00048 InputDevice::InputDevice( OSDL::MVC::Controller & actualController ) :
00049 Ceylan::InputDevice( actualController )
00050 {
00051
00052 }
00053
00054
00055
00056 InputDevice::~InputDevice() throw()
00057 {
00058
00059 }
00060
00061
00062
00063 OSDL::MVC::Controller & InputDevice::getActualController() const
00064 {
00065
00066 return * dynamic_cast<OSDL::MVC::Controller *>( & getController() ) ;
00067
00068 }
00069
00070
00071
00072 const string InputDevice::toString( Ceylan::VerbosityLevels level ) const
00073 {
00074
00075 if ( _controller == 0 )
00076 return "OSDL actual input device currently "
00077 "not linked to any controller" ;
00078 else
00079 return "OSDL actual input device currently "
00080 "linked with following controller: "
00081 + _controller->toString( level ) ;
00082
00083 }
00084