| 174 | } |
| 175 | |
| 176 | void CPageInput::DlgOK(HWND hWnd) |
| 177 | { |
| 178 | // This GetConfigNew() has already been set: |
| 179 | // . m_joystickType[] |
| 180 | |
| 181 | m_PropertySheetHelper.GetConfigNew().m_pdlXTrim = (short)SendDlgItemMessage(hWnd, IDC_SPIN_XTRIM, UDM_GETPOS, 0, 0); |
| 182 | m_PropertySheetHelper.GetConfigNew().m_pdlYTrim = (short)SendDlgItemMessage(hWnd, IDC_SPIN_YTRIM, UDM_GETPOS, 0, 0); |
| 183 | |
| 184 | m_PropertySheetHelper.GetConfigNew().m_cursorControl = IsDlgButtonChecked(hWnd, IDC_CURSORCONTROL) ? 1 : 0; |
| 185 | m_PropertySheetHelper.GetConfigNew().m_autofire = IsDlgButtonChecked(hWnd, IDC_AUTOFIRE) ? 7 : 0; // bitmap of 3 bits |
| 186 | m_PropertySheetHelper.GetConfigNew().m_swapButtons0and1 = IsDlgButtonChecked(hWnd, IDC_SWAPBUTTONS0AND1) ? true : false; |
| 187 | m_PropertySheetHelper.GetConfigNew().m_centeringControl = IsDlgButtonChecked(hWnd, IDC_CENTERINGCONTROL) ? 1 : 0; |
| 188 | |
| 189 | m_PropertySheetHelper.PostMsgAfterClose(hWnd, m_Page); |
| 190 | } |
| 191 | |
| 192 | void CPageInput::ApplyConfigAfterClose() |
| 193 | { |
nothing calls this directly
no test coverage detected