|
PEBL 2.2
Psychology Experiment Building Language - Cross-platform psychological experiment development system
|
#include <PKeyboard.h>
Public Member Functions | |
| PKeyboard () | |
| The Standard constructor. | |
| virtual | ~PKeyboard () |
| The Standard destructor. | |
| virtual PEBL_Keycode | TranslateString (std::string letter) const |
| Translate a letter string to the appropriate keyboard symbol. | |
| virtual std::string | TranslateKeyCode (const PEBL_Keycode code) const |
| virtual PEBL_Keycode | IsKeyDown (PEBL_Keycode code) const =0 |
| virtual bool | IsKeyUp (PEBL_Keycode code) const =0 |
| virtual int | GetState (int iface) const |
| virtual PEBL_DEVICE_TYPE | GetDeviceType () |
| virtual int | GetModKeys () const |
Public Member Functions inherited from PDevice | |
| PDevice () | |
| The Standard constructor. | |
| virtual | ~PDevice () |
| The Standard destructor. | |
Protected Member Functions | |
| virtual std::ostream & | SendToStream (std::ostream &out) const |
This is the base Keyboard class. It is 'virtual' and must be overridden by a PlatformKeyboard class, but contains keycodes
Definition at line 342 of file PKeyboard.h.
| PKeyboard::PKeyboard | ( | ) |
The Standard constructor.
This is the standard pNode constructor.
Definition at line 38 of file PKeyboard.cpp.
|
virtual |
The Standard destructor.
This is the standard pNode destructor.
Definition at line 44 of file PKeyboard.cpp.
|
inlinevirtual |
|
virtual |
Definition at line 81 of file PKeyboard.cpp.
References PError::SignalFatalError().
|
virtual |
Reimplemented from PDevice.
Reimplemented in PlatformKeyboard.
Definition at line 74 of file PKeyboard.cpp.
|
pure virtual |
This will test whether a specific key is down, and return true if it is.
Implemented in PlatformKeyboard, and PlatformKeyboard.
|
pure virtual |
This will test whether a specific key is up, and return true if it is.
Implemented in PlatformKeyboard, and PlatformKeyboard.
|
protectedvirtual |
Reimplemented from PDevice.
Reimplemented in PlatformKeyboard, and PlatformKeyboard.
Definition at line 52 of file PKeyboard.cpp.
|
virtual |
Definition at line 69 of file PKeyboard.cpp.
References PEBLMOD_NONE, and PEBLUtility::TranslateKeycode().
|
virtual |
Translate a letter string to the appropriate keyboard symbol.
This does as best as it can to translate the letter string into a keyboard key.
Definition at line 63 of file PKeyboard.cpp.
References PEBLUtility::TranslateString().