Platform_NULL_Input.cpp
Go to the documentation of this file.00001 //*** Platform_NULL_Input *** 00002 00003 #include "Platform_NULL_Input.h" 00004 #include "Platform_NULL_Input_KeyboardDevice.h" 00005 #include "Platform_NULL_Input_MouseDevice.h" 00006 00007 00008 //*** Constructor *** 00009 00010 Platform_NULL_Input::Platform_NULL_Input(): 00011 keyboardDevice_(0), 00012 mouseDevice_(0) 00013 { 00014 } 00015 00016 00017 //*** Destructor *** 00018 00019 Platform_NULL_Input::~Platform_NULL_Input() 00020 { 00021 if (keyboardDevice_) 00022 { 00023 delete keyboardDevice_; 00024 keyboardDevice_=0; 00025 } 00026 00027 if (mouseDevice_) 00028 { 00029 delete mouseDevice_; 00030 mouseDevice_=0; 00031 } 00032 } 00033 00034 00035 //*** GetKeyboardDevice *** 00036 00037 const Platform_Input_KeyboardDevice* Platform_NULL_Input::GetKeyboardDevice() 00038 { 00039 if (!keyboardDevice_) 00040 { 00041 keyboardDevice_=new Platform_NULL_Input_KeyboardDevice(); 00042 } 00043 00044 return keyboardDevice_; 00045 } 00046 00047 00048 //*** GetMouseDevice *** 00049 00050 const Platform_Input_MouseDevice* Platform_NULL_Input::GetMouseDevice() 00051 { 00052 if (!mouseDevice_) 00053 { 00054 mouseDevice_=new Platform_NULL_Input_MouseDevice(); 00055 } 00056 00057 return mouseDevice_; 00058 } 00059 00060 00061 //*** CreateMouseCursor *** 00062 00063 int Platform_NULL_Input::CreateMouseCursor(int width, int height, int hotspotX, int hotspotY, unsigned short* colorData, unsigned char* alphaData) 00064 { 00065 return 0; 00066 } 00067 00068 00069 //*** SetMouseCursor *** 00070 00071 void Platform_NULL_Input::SetMouseCursor(int handle) 00072 { 00073 00074 } 00075 00076 00077 //*** SetDefaultMouseCursor *** 00078 00079 void Platform_NULL_Input::SetDefaultMouseCursor() 00080 { 00081 00082 }
Reproduction/republishing of any material on this site without permission is strictly prohibited.
