Ok giving up on directinput... Just wanted to get keyboard input for arrow keys.... ARGGGGGGGGGGGGGGGGG....
however, I found a new drug.... Now I am just trying to use message handling to grab the WM_KEYDOWN msg and then process the virtual key pushed.... However, it appears by default my dialog program uses the arrow key as navigation to buttons, can anyone understand how I might disable this on initiation of the dialog???
below is my function called when you pushe specific movestate button to try and capture arrow keys from the user:
Code:
void CNavigatorDlg::OnMoveStateOn()
{
moveState = 1;
UINT uMsg;
WPARAM wParam;
//set case to record arrow key move instructions
switch (uMsg)
{
case WM_CHAR:
if (WM_KEYDOWN)
{
switch (wParam)
{
case VK_LEFT:
// Process the LEFT ARROW key.
m_Direction = "Left";
UpdateData (false);
break;
case VK_RIGHT:
// Process the RIGHT ARROW key.
m_Direction = "Right";
UpdateData (false);
break;
case VK_UP:
// Process the UP ARROW key.
break;
case VK_DOWN:
// Process the DOWN ARROW key.
break;
}
}
}
//set color indicator of move status
m_MoveState.SetColor(RGB(0,255,0));
}