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... | |||
Boole | CheckButtonState (const UInt16 Button, const Input::ButtonState &State) const | ||
Checks to see if a button on this device is a specific state. More... | |||
Boole | 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... | |||
Boole | IsButtonLifting (const UInt16 Button) const | ||
Gets whether or not a device button was lifted this frame. More... | |||
Boole | IsButtonLifting (const Input::InputCode &Button) const | ||
Gets whether or not a device button was lifted this frame. More... | |||
Boole | IsButtonPressed (const UInt16 Button) const | ||
Gets whether or not a device button is pressed down. More... | |||
Boole | IsButtonPressed (const Input::InputCode &Button) const | ||
Gets whether or not a device button is pressed down. More... | |||
Boole | IsButtonPressing (const UInt16 Button) const | ||
Gets whether or not a device button was pressed this frame. More... | |||
Boole | IsButtonPressing (const Input::InputCode &Button) const | ||
Gets whether or not a device button was pressed this frame. More... | |||
Boole | IsButtonTransitioning (const UInt16 Button) const | ||
Gets whether or not a device button was lifted or pressed this frame. More... | |||
Boole | 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.
| |||
Boole | 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 |
A container of states for each button on the input device. More... | |
std::vector< Whole > | TransitioningIndexes |
A container of indexes being tracked due to state transitions. More... | |
Protected Attributes inherited from Mezzanine::Input::Device | |
SequenceContainer | Sequences |
A container for storing and detecting input sequences for an input device. More... | |
This class represents the keyboard input device. ////////////////////////////////////.
Definition at line 55 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.