I use a dialog as the parent of vega prime window,everything works well except that the vega dows don't handle my keyboard input.
I use MotionGame,the window can handle my mouse action,but has no responce to my keyboard input.Any suggestion will be appreciated,thx
anser
O,I found that actually it does recv
every keyboard input except KEY_UP,
KEY_DOWN,KEY_LEFT,KEY_RIGHT.
I've define my own keyborad func
use vpWin->setKeyboardFunc(KeyboardFunc);
And
void KeyboardFunc(vrWindow *vrWin, vrWindow::Key key, int mod, void*)
{
CString t;
t.Format("%d",key);
AfxMessageBox(t);
}
On every other key the message pop up
except the direction key-_-
博主使用对话框作为Vega Prime窗口的父窗口,Vega无法处理键盘输入。使用MotionGame时,窗口能处理鼠标动作但对键盘输入无响应,后发现除方向键外能接收其他键盘输入,还定义了自己的键盘函数。
762

被折叠的 条评论
为什么被折叠?



