Fix motion key input settings

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@84 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
DJRobX 2007-11-15 09:41:20 +00:00
parent b305fff8df
commit 85ef110281
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()