Platform_Win32_Input_KeyboardDevice.h
Go to the documentation of this file.00001 00011 #ifndef __Platform_Win32_Input_KeyboardDevice_H__ 00012 #define __Platform_Win32_Input_KeyboardDevice_H__ 00013 00014 // Includes 00015 #include "Platform_Input_KeyboardDevice.h" 00016 00017 // Forward declares 00018 00019 // Platform_Win32_Input_KeyboardDevice 00020 class Platform_Win32_Input_KeyboardDevice: public Platform_Input_KeyboardDevice 00021 { 00022 public: 00023 Platform_Win32_Input_KeyboardDevice(); 00024 virtual ~Platform_Win32_Input_KeyboardDevice(); 00025 00026 virtual bool IsKeyDown(KeyCode keyCode) const; 00027 virtual bool IsCharDown(char ascii) const; 00028 00029 virtual void ClearBufferedCharacters() const; 00030 virtual int GetBufferedCharacterCount() const; 00031 virtual char GetBufferedCharacter(int index) const; 00032 00033 void SetCharPressed(char ascii, unsigned char keycode); 00034 void SetCharReleased(unsigned char keycode); 00035 void AddBufferedCharacter(char ascii); 00036 00037 private: 00038 bool charStates_[256]; 00039 int charKeycodes_[256]; 00040 00041 char characterBuffer_[256]; 00042 mutable int characterBufferCount_; 00043 }; 00044 00045 #endif /* __Platform_Win32_Input_KeyboardDevice_H__ */
Reproduction/republishing of any material on this site without permission is strictly prohibited.
