Skip to content

Commit

Permalink
Pedal axis calibration #456
Browse files Browse the repository at this point in the history
  • Loading branch information
matlo committed Jun 27, 2017
1 parent c341ba4 commit a381722
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/gimx-config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2134,7 +2134,7 @@ void configFrame::addJoystickCorrection()
int i;
for (i = 0; i < GridJoystickCorrections->GetNumberRows(); ++i)
{
if(GridJoystickCorrections->GetCellValue(i, 0) == AxisTabDeviceName->GetLabel()
if(GridJoystickCorrections->GetCellValue(i, 0) == wxString(axisTabDeviceName.c_str(), wxConvUTF8)
&& GridJoystickCorrections->GetCellValue(i, 1) == AxisTabDeviceId->GetLabel()
&& GridJoystickCorrections->GetCellValue(i, 2) == AxisTabEventId->GetLabel())
{
Expand All @@ -2145,7 +2145,7 @@ void configFrame::addJoystickCorrection()
if (i == GridJoystickCorrections->GetNumberRows())
{
GridJoystickCorrections->InsertRows();
GridJoystickCorrections->SetCellValue(0, 0, AxisTabDeviceName->GetLabel());
GridJoystickCorrections->SetCellValue(0, 0, wxString(axisTabDeviceName.c_str(), wxConvUTF8));
GridJoystickCorrections->SetCellValue(0, 1, AxisTabDeviceId->GetLabel());
GridJoystickCorrections->SetCellValue(0, 2, AxisTabEventId->GetLabel());
GridJoystickCorrections->SetCellValue(0, 3, wxString(slv.c_str(),wxConvUTF8));
Expand Down

0 comments on commit a381722

Please sign in to comment.