#include "std.h" #include "gxdevice.h" #include "gxruntime.h" gxDevice::gxDevice(){ reset(); } gxDevice::~gxDevice(){ } void gxDevice::reset(){ memset( down_state,0,sizeof(down_state) ); memset( axis_states,0,sizeof(axis_states) ); memset( hit_count,0,sizeof(hit_count) ); put=get=0; } void gxDevice::downEvent( int key ){ down_state[key]=true; ++hit_count[key]; if( put-get