MCPcopy Create free account
hub / github.com/TASEmulators/fceux / UpdateComboFam

Function UpdateComboFam

src/drivers/win/input.cpp:1440–1464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1438}
1439
1440static void UpdateComboFam(HWND hwndDlg)
1441{
1442// Update the user input type of the famicom
1443 InputType[FAMICOM_POSITION] =
1444 SendDlgItemMessage(
1445 hwndDlg,
1446 COMBO_FAM,
1447 CB_GETCURSEL,
1448 0,
1449 (LPARAM)(LPSTR)0
1450 );
1451
1452 // Enable or disable the configuration button
1453 EnableWindow(
1454 GetDlgItem(hwndDlg, BTN_FAM),
1455 configurable_fam[InputType[FAMICOM_POSITION]]
1456 );
1457
1458 // Update the text field
1459 SetDlgItemText(
1460 hwndDlg,
1461 TXT_FAM,
1462 (LPTSTR)ESIFC_Name((ESIFC)InputType[FAMICOM_POSITION])
1463 );
1464}
1465
1466
1467static void UpdateFourscoreState(HWND dlg)

Callers 1

InputConCallBFunction · 0.85

Calls 1

ESIFC_NameFunction · 0.85

Tested by

no test coverage detected