USB: Remove "Bypass Startup Calibration"

It wasn't hooked up to anything
This commit is contained in:
Silent 2020-12-24 14:11:20 +01:00 committed by jackun
parent 2c1ebae039
commit f19985c410
4 changed files with 0 additions and 12 deletions

View File

@ -49,7 +49,6 @@ namespace usb_pad
std::vector<DIJOYSTATE2> jso; // DInput joystick old state, only for config
std::vector<DIJOYSTATE2> jsi; // DInput joystick initial state, only for config
int32_t BYPASSCAL = 0;
int32_t GAINZ[2][1];
int32_t FFMULTI[2][1];
int32_t INVERTFORCES[2]{};
@ -775,7 +774,6 @@ namespace usb_pad
SendMessage(GetDlgItem(hWnd, IDC_SLIDER5), TBM_SETPOS, 1, FFMULTI[port][0]);
SendMessage(GetDlgItem(hWnd, IDC_CHECK1), BM_SETCHECK, INVERTFORCES[port], 0);
SendMessage(GetDlgItem(hWnd, IDC_CHECK2), BM_SETCHECK, BYPASSCAL, 0);
SendMessage(GetDlgItem(hWnd, IDC_CHECK3), BM_SETCHECK, useRamp, 0);
//HANDLE hBitmap = LoadImage(NULL,MAKEINTRESOURCE(IDB_BITMAP1), IMAGE_BITMAP,0,0,LR_DEFAULTSIZE);
//SendMessage(GetDlgItem(hWnd,IDC_PICTURELINK), STM_SETIMAGE, IMAGE_BITMAP, LPARAM(hBitmap));
@ -1206,7 +1204,6 @@ namespace usb_pad
void ApplySettings(int port)
{
INVERTFORCES[port] = SendDlgItemMessage(hWnd, IDC_CHECK1, BM_GETCHECK, 0, 0);
BYPASSCAL = SendDlgItemMessage(hWnd, IDC_CHECK2, BM_GETCHECK, 0, 0);
useRamp = !!SendDlgItemMessage(hWnd, IDC_CHECK3, BM_GETCHECK, 0, 0);
GAINZ[port][0] = SendMessage(GetDlgItem(hWnd, IDC_SLIDER4), TBM_GETPOS, 0, 0);
FFMULTI[port][0] = SendMessage(GetDlgItem(hWnd, IDC_SLIDER5), TBM_GETPOS, 0, 0);
@ -1214,8 +1211,6 @@ namespace usb_pad
void SaveDInputConfig(int port, const char* dev_type)
{
SaveSetting(TEXT("dinput"), TEXT("BYPASSCAL"), BYPASSCAL);
wchar_t section[256];
swprintf_s(section, L"%S dinput %d", dev_type, port);
@ -1263,8 +1258,6 @@ namespace usb_pad
void LoadDInputConfig(int port, const char* dev_type)
{
LoadSetting(TEXT("dinput"), TEXT("BYPASSCAL"), BYPASSCAL);
wchar_t section[256];
swprintf_s(section, L"%S dinput %d", dev_type, port);

View File

@ -40,9 +40,6 @@ namespace usb_pad
{
namespace dx
{
extern int32_t BYPASSCAL;
//dinput control mappings
static const DWORD PRECMULTI = 100; //floating point precision multiplier, 100 - two digit precision after comma

View File

@ -141,7 +141,6 @@
#define IDC_DEL17 1109
#define IDC_BUTTON1 1110
#define IDC_CHECK1 1111
#define IDC_CHECK2 1112
#define IDC_CHECK3 1113
#define IDC_SLIDER4 1114
#define IDC_BUTTON3 1116

View File

@ -158,7 +158,6 @@ BEGIN
CONTROL "",IDC_SLIDER5,"msctls_trackbar32",TBS_AUTOTICKS | TBS_TOP | WS_TABSTOP,510,223,102,23
CONTROL "INVERT FORCES",IDC_CHECK1,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,450,249,65,12
CONTROL "USE RAMP FOR VARIABLE (0x8) EFFECT",IDC_CHECK3,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,519,250,144,12
CONTROL "BYPASS STARTUP CALIBRATION",IDC_CHECK2,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,450,261,126,12
PUSHBUTTON "Reset Defaults",IDC_BUTTON3,594,261,60,12,NOT WS_VISIBLE
DEFPUSHBUTTON "OK",IDOK,498,282,80,20
PUSHBUTTON "Cancel",IDCANCEL,582,282,80,20