This is a base class for all input devices.
More...
#include <device.h>
|
virtual void | VerifySequenceImpl (const MetaCodeContainer &Sequence) const =0 |
| Provides the device specific logic for filtering code sequences. More...
|
|
This is a base class for all input devices.
Definition at line 56 of file device.h.
virtual void Mezzanine::Input::Device::_Update |
( |
const MetaCodeContainer & |
DeltaCodes, |
|
|
MetaCodeContainer & |
GeneratedCodes |
|
) |
| |
|
pure virtual |
Updates this device with the newest data.
- Parameters
-
DeltaCodes | A vector of the codes to process and update this device with. |
GeneratedCodes | A vector to which generated codes (sequence or otherwise) will be added. |
Implemented in Mezzanine::Input::ButtonDevice.
void Mezzanine::Input::Device::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.
- Exceptions
-
If | the vector of MetaCode's doesn't end with a null MetaCode, an exception will be thrown. An exception can also be thrown if the ID provided is the max value of an Int32. |
- Parameters
-
Codes | A vector containing the sequence of MetaCode's to be added. |
SequenceID | A unique UInt32 to be used as the identifier for this sequence when a MetaCode is generated. |
Definition at line 58 of file device.cpp.
virtual UInt16 Mezzanine::Input::Device::GetDeviceIndex |
( |
) | |
const |
|
pure virtual |
Int32 Mezzanine::Input::Device::GetIDofInputSequence |
( |
const MetaCodeContainer & |
Codes) | |
|
Gets the ID of the provided sequence of MetaCode's.
- Exceptions
-
If | the vector of MetaCode's doesn't end with a null MetaCode, an exception will be thrown. |
- Parameters
-
Codes | A vector containing the sequence of MetaCode's to get the ID for. |
- Returns
- Returns the ID of the provided sequence, or the max value of an Int32 if the sequence does not exist.
Definition at line 67 of file device.cpp.
bool Mezzanine::Input::Device::InputSequenceExists |
( |
const MetaCodeContainer & |
Codes) | |
|
Checks to see if the provided sequence of MetaCode's is already being checked for.
- Exceptions
-
If | the vector of MetaCode's doesn't end with a null MetaCode, an exception will be thrown. |
- Parameters
-
Codes | A vector containing the sequence of MetaCode's to check for. |
- Returns
- Returns true if the sequence already exists, false otherwise.
Definition at line 64 of file device.cpp.
void Mezzanine::Input::Device::RemoveAllInputSequences |
( |
) | |
|
Removes all stored input sequences.
Definition at line 73 of file device.cpp.
void Mezzanine::Input::Device::RemoveInputSequence |
( |
const MetaCodeContainer & |
Codes) | |
|
Removes the specified custom sequence of MetaCode's.
- Exceptions
-
If | the vector of MetaCode's doesn't end with a null MetaCode, an exception will be thrown. |
- Parameters
-
Codes | A vector containing the sequence of MetaCode's to be removed. |
Definition at line 70 of file device.cpp.
virtual void Mezzanine::Input::Device::VerifySequenceImpl |
( |
const MetaCodeContainer & |
Sequence) | |
const |
|
protectedpure virtual |
The documentation for this class was generated from the following files:
- /home/sqeaky/Code/Mezzanine/Mezzanine/src/Input/device.h
- /home/sqeaky/Code/Mezzanine/Mezzanine/src/Input/device.cpp