00001 #include "TouchInterface.h" 00002 00003 00004 namespace RenderTools { 00005 00006 map< TouchIndex, TouchPoint > TouchInterface::s_touches; 00007 00008 const TouchPoint & TouchInterface::getTouchPoint( TouchIndex index ){ 00009 if( s_touches.find( index ) != s_touches.end() ){ 00010 return( s_touches[ index ] ); 00011 } 00012 else{ 00013 static const TouchPoint t; 00014 return( t ); 00015 } 00016 } 00017 00018 bool TouchInterface::isTouchPoint( TouchIndex index ){ 00019 return( s_touches.find( index ) != s_touches.end() ); 00020 } 00021 00022 00023 }; 00024
1.5.8