Fix motion key input settings

This commit is contained in:
DJRobX 2007-11-15 09:41:20 +00:00
parent 0ee6169c7a
commit f409775477
1 changed files with 4 additions and 13 deletions

View File

@ -406,19 +406,10 @@ void MotionConfig::assignKey(int id, int key)
void MotionConfig::assignKeys()
{
int id;
id = IDC_EDIT_UP;
assignKey(id, GetWindowLong(up, GWL_USERDATA));
id = IDC_EDIT_DOWN;
assignKey(id, GetWindowLong(down, GWL_USERDATA));
id = IDC_EDIT_LEFT;
assignKey(id, GetWindowLong(left, GWL_USERDATA));
id = IDC_EDIT_RIGHT;
assignKey(id, GetWindowLong(right, GWL_USERDATA));
AssignKeys(up.m_Keys,theApp.input->joypaddata[MOTION(KEY_UP)]);
AssignKeys(down.m_Keys, theApp.input->joypaddata[MOTION(KEY_DOWN)]);
AssignKeys(left.m_Keys, theApp.input->joypaddata[MOTION(KEY_LEFT)]);
AssignKeys(right.m_Keys, theApp.input->joypaddata[MOTION(KEY_RIGHT)]);
}
void JoypadConfig::OnBnClickedAppendmode()