Platform_Win32_Input.h
Go to the documentation of this file.00001 00010 #ifndef __Platform_Win32_Input_H__ 00011 #define __Platform_Win32_Input_H__ 00012 00013 // Includes 00014 #include "Platform_Input.h" 00015 00016 #define WIN32_LEAN_AND_MEAN 00017 #define VC_EXTRALEAN 00018 #include <windows.h> 00019 00020 // Forward declares 00021 class Platform_Win32_OS; 00022 class Platform_Win32_Input_KeyboardDevice; 00023 class Platform_Win32_Input_MouseDevice; 00024 struct IDirectInputA; 00025 00026 // Platform_Win32_Input 00027 class Platform_Win32_Input:public Platform_Input,PlatformEventListener 00028 { 00029 00030 public: 00031 Platform_Win32_Input(Platform_Win32_OS* os); 00032 virtual ~Platform_Win32_Input(); 00033 00034 virtual const Platform_Input_KeyboardDevice* GetKeyboardDevice(); 00035 virtual const Platform_Input_MouseDevice* GetMouseDevice(); 00036 00037 virtual int CreateMouseCursor(int width, int height, int hotspotX, int hotspotY, unsigned short* colorData, unsigned char* alphaData); 00038 00039 virtual void SetMouseCursor(int handle); 00040 00041 virtual void SetDefaultMouseCursor(); 00042 00043 virtual void OnCustomEvent(const char* eventId,void* userData); 00044 00045 private: 00046 struct HWND__* windowHandle_; 00047 Platform_Win32_Input_KeyboardDevice* keyboardDevice_; 00048 Platform_Win32_Input_MouseDevice* mouseDevice_; 00049 00050 static const int MaxCursors = 256; 00051 int cursorCount_; 00052 HCURSOR cursors_[MaxCursors]; 00053 00054 HCURSOR defaultCursor_; 00055 }; 00056 00057 #endif /* __Platform_Win32_Input_H__ */
Reproduction/republishing of any material on this site without permission is strictly prohibited.
