Пример #1
0
bool hgeGUIMenuItem::KeyClick(int key, int chr) {
    if(key == HGEK_ENTER) {
        MouseLButton(true);
        return MouseLButton(false);
    }

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

	return false;
}