Platform_Win32_Input_KeyboardDevice Class Reference

Public Member Functions | |
| Platform_Win32_Input_KeyboardDevice () | |
| virtual | ~Platform_Win32_Input_KeyboardDevice () |
| virtual bool | IsKeyDown (KeyCode keyCode) const |
| virtual bool | IsCharDown (char ascii) const |
| virtual void | ClearBufferedCharacters () const |
| virtual int | GetBufferedCharacterCount () const |
| virtual char | GetBufferedCharacter (int index) const |
| void | SetCharPressed (char ascii, unsigned char keycode) |
| void | SetCharReleased (unsigned char keycode) |
| void | AddBufferedCharacter (char ascii) |
Detailed Description
Definition at line 20 of file Platform_Win32_Input_KeyboardDevice.h.
Constructor & Destructor Documentation
| Platform_Win32_Input_KeyboardDevice::Platform_Win32_Input_KeyboardDevice | ( | ) |
Definition at line 12 of file Platform_Win32_Input_KeyboardDevice.cpp.
| Platform_Win32_Input_KeyboardDevice::~Platform_Win32_Input_KeyboardDevice | ( | ) | [virtual] |
Definition at line 25 of file Platform_Win32_Input_KeyboardDevice.cpp.
Member Function Documentation
| bool Platform_Win32_Input_KeyboardDevice::IsKeyDown | ( | KeyCode | keyCode | ) | const [virtual] |
Checks if a key with the specified key code is currently held down See the KeyCode enum for more info on key codes.
- Returns:
- True if the specified key is held down, false if it isn't
Implements Platform_Input_KeyboardDevice.
Definition at line 32 of file Platform_Win32_Input_KeyboardDevice.cpp.
| bool Platform_Win32_Input_KeyboardDevice::IsCharDown | ( | char | ascii | ) | const [virtual] |
Checks if the key, or combination of keys, representing the character with the specified ascii number is currently held down. Characters are different from keys, in that a combination of keys may be needed to produce certain characters, and in that key repeat effects may cause a character to be reported as alternately up and down, if held for a period of time.
- Returns:
- True if the character is held down, false if it isn't
Implements Platform_Input_KeyboardDevice.
Definition at line 45 of file Platform_Win32_Input_KeyboardDevice.cpp.
| void Platform_Win32_Input_KeyboardDevice::ClearBufferedCharacters | ( | ) | const [virtual] |
Implements Platform_Input_KeyboardDevice.
Definition at line 96 of file Platform_Win32_Input_KeyboardDevice.cpp.
| int Platform_Win32_Input_KeyboardDevice::GetBufferedCharacterCount | ( | ) | const [virtual] |
Implements Platform_Input_KeyboardDevice.
Definition at line 104 of file Platform_Win32_Input_KeyboardDevice.cpp.
| char Platform_Win32_Input_KeyboardDevice::GetBufferedCharacter | ( | int | index | ) | const [virtual] |
Implements Platform_Input_KeyboardDevice.
Definition at line 112 of file Platform_Win32_Input_KeyboardDevice.cpp.
| void Platform_Win32_Input_KeyboardDevice::SetCharPressed | ( | char | ascii, | |
| unsigned char | keycode | |||
| ) |
Definition at line 53 of file Platform_Win32_Input_KeyboardDevice.cpp.
| void Platform_Win32_Input_KeyboardDevice::SetCharReleased | ( | unsigned char | keycode | ) |
Definition at line 63 of file Platform_Win32_Input_KeyboardDevice.cpp.
| void Platform_Win32_Input_KeyboardDevice::AddBufferedCharacter | ( | char | ascii | ) |
Definition at line 78 of file Platform_Win32_Input_KeyboardDevice.cpp.
Reproduction/republishing of any material on this site without permission is strictly prohibited.
