bool hgeGUIMenuItem::KeyClick(int key, int chr) { if(key == HGEK_ENTER) { MouseLButton(true); return MouseLButton(false); } return false; }
bool MainMenuItem::KeyClick(int key, int chr) { if(key==HGEK_ENTER || key==HGEK_SPACE) { MouseLButton(true); return MouseLButton(false); } return false; }
//键盘处理 bool CChooseItem::KeyClick(int key, int chr) { //回车和空格输入的处理同鼠标左键 if(key==HGEK_ENTER || key==HGEK_SPACE) { MouseLButton(true); return MouseLButton(false); } return false; }