dinput: Fill dialog with info about the first device by default in config.c.

This commit is contained in:
Lucas Fialho Zawacki 2011-09-13 02:55:00 -03:00 committed by Alexandre Julliard
parent 03fa9f627b
commit 32800de137
1 changed files with 4 additions and 0 deletions

View File

@ -374,6 +374,10 @@ static INT_PTR CALLBACK ConfigureDevicesDlgProc(HWND dialog, UINT uMsg, WPARAM w
data->original_lpdiaf->rgoAction = HeapAlloc(GetProcessHeap(), 0, sizeof(DIACTIONW)*data->lpdiaf->dwNumActions); data->original_lpdiaf->rgoAction = HeapAlloc(GetProcessHeap(), 0, sizeof(DIACTIONW)*data->lpdiaf->dwNumActions);
copy_actions(data->original_lpdiaf, data->lpdiaf); copy_actions(data->original_lpdiaf, data->lpdiaf);
/* Select the first device and show its actions */
SendDlgItemMessageW(dialog, IDC_CONTROLLERCOMBO, CB_SETCURSEL, 0, 0);
fill_device_object_list(dialog);
break; break;
} }