40 #ifndef _inputkeyboard_cpp
41 #define _inputkeyboard_cpp
43 #include "Input/keyboard.h"
44 #include "exception.h"
63 for(
Whole X = 0 ; X < DeltaCodes.size() ; ++X )
65 this->TransitioningIndexes.push_back( DeltaCodes[X].GetCode() );
66 this->Buttons.at( DeltaCodes[X].GetCode() ) =
static_cast<Input::ButtonState>(DeltaCodes[X].GetMetaValue());
68 this->Sequences.
Update(DeltaCodes,GeneratedCodes);
73 for( ConstMetaCodeIterator MCIt = Sequence.begin() ; MCIt != Sequence.end() ; ++MCIt )
75 if( !MCIt->IsKeyboardEvent() )
76 { MEZZ_EXCEPTION(
Exception::PARAMETERS_EXCEPTION,
"Non-Keyboard MetaCode detected when attempting to insert an Input Sequence into Keyboard input device."); }
82 for(
UInt32 Index = 0 ; Index < this->Buttons.size() ; ++Index )
93 {
return std::numeric_limits<UInt16>::max(); }
96 {
return this->Buttons.at( Button - 1 ); }
99 {
return this->Buttons.at(Button); }