This class represents the keyboard input device. More...
#include <keyboard.h>
Public Member Functions | |||
Keyboard () | |||
Class constructor. | |||
virtual | ~Keyboard () | ||
Class destructor. | |||
const Input::ButtonState & | GetButtonState (const UInt16 Button) const | ||
const Input::ButtonState & | GetButtonState (const Input::InputCode &Button) const | ||
UInt16 | GetDeviceIndex () const | ||
Gets the device index of this controller. More... | |||
Public Member Functions inherited from Mezzanine::Input::ButtonDevice | |||
ButtonDevice () | |||
Class constructor. | |||
virtual | ~ButtonDevice () | ||
Class destructor. | |||
void | _Update (const MetaCodeContainer &DeltaCodes, MetaCodeContainer &GeneratedCodes) | ||
Updates this device with the newest data. More... | |||
bool | CheckButtonState (const UInt16 Button, const Input::ButtonState &State) const | ||
Checks to see if a button on this device is a specific state. More... | |||
bool | CheckButtonState (const Input::InputCode &Button, const Input::ButtonState &State) const | ||
Checks to see if a button on this device is a specific state. More... | |||
UInt16 | GetNumButtons () const | ||
Gets the number of buttons on this device. More... | |||
bool | IsButtonLifting (const UInt16 Button) const | ||
Gets whether or not a device button was lifted this frame. More... | |||
bool | IsButtonLifting (const Input::InputCode &Button) const | ||
Gets whether or not a device button was lifted this frame. More... | |||
bool | IsButtonPressed (const UInt16 Button) const | ||
Gets whether or not a device button is pressed down. More... | |||
bool | IsButtonPressed (const Input::InputCode &Button) const | ||
Gets whether or not a device button is pressed down. More... | |||
bool | IsButtonPressing (const UInt16 Button) const | ||
Gets whether or not a device button was pressed this frame. More... | |||
bool | IsButtonPressing (const Input::InputCode &Button) const | ||
Gets whether or not a device button was pressed this frame. More... | |||
bool | IsButtonTransitioning (const UInt16 Button) const | ||
Gets whether or not a device button was lifted or pressed this frame. More... | |||
bool | IsButtonTransitioning (const Input::ButtonState &Button) const | ||
Gets whether or not a device button was lifted or pressed this frame. More... | |||
Public Member Functions inherited from Mezzanine::Input::Device | |||
Device () | |||
Class constructor. | |||
virtual | ~Device () | ||
Class destructor. | |||
void | AddInputSequence (const MetaCodeContainer &Codes, const Int32 &SequenceID) | ||
Adds a custom sequence of inputs that this system will look for and generate MetaCode's for when they occur.
| |||
Int32 | GetIDofInputSequence (const MetaCodeContainer &Codes) | ||
Gets the ID of the provided sequence of MetaCode's.
| |||
bool | InputSequenceExists (const MetaCodeContainer &Codes) | ||
Checks to see if the provided sequence of MetaCode's is already being checked for.
| |||
void | RemoveAllInputSequences () | ||
Removes all stored input sequences. More... | |||
void | RemoveInputSequence (const MetaCodeContainer &Codes) | ||
Removes the specified custom sequence of MetaCode's.
| |||
Protected Member Functions | |
void | AddPressedButtons (MetaCodeContainer &GeneratedCodes) const |
void | UpdateImpl (const MetaCodeContainer &DeltaCodes, MetaCodeContainer &GeneratedCodes) |
Internal implementation of the device update. More... | |
void | VerifySequenceImpl (const MetaCodeContainer &Sequence) const |
Protected Member Functions inherited from Mezzanine::Input::ButtonDevice | |
void | UpdateButtonTransitions () |
Updates transitioning buttons. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Mezzanine::Input::ButtonDevice | |
std::vector< Input::ButtonState > | Buttons |
std::vector< Whole > | TransitioningIndexes |
This class represents the keyboard input device.
Definition at line 58 of file keyboard.h.
|
protectedvirtual |
Implements Mezzanine::Input::ButtonDevice.
Definition at line 80 of file keyboard.cpp.
|
virtual |
Implements Mezzanine::Input::ButtonDevice.
Definition at line 95 of file keyboard.cpp.
|
virtual |
Implements Mezzanine::Input::ButtonDevice.
Definition at line 98 of file keyboard.cpp.
|
virtual |
Gets the device index of this controller.
Implements Mezzanine::Input::Device.
Definition at line 92 of file keyboard.cpp.
|
protectedvirtual |
Internal implementation of the device update.
Implements Mezzanine::Input::ButtonDevice.
Definition at line 61 of file keyboard.cpp.
|
protectedvirtual |
Implements Mezzanine::Input::ButtonDevice.
Definition at line 71 of file keyboard.cpp.