00001 00002 #include "KeyboardInterface.h" 00003 00004 namespace RenderTools{ 00005 00006 map< int, bool > KeyboardInterface::s_keys; 00007 00008 bool KeyboardInterface::getKeyState( int key ){ 00009 if( s_keys.find( key ) != s_keys.end() ){ 00010 return( s_keys[ key ] ); 00011 } 00012 else{ 00013 return( false ); 00014 } 00015 } 00016 00017 }; 00018 00019
1.5.8