| 855 | _keys = nullptr; |
| 856 | Load("RscDisplayConfigure"); |
| 857 | PoseidonAssert(_keys); |
| 858 | |
| 859 | auto& input = InputSubsystem::Instance(); |
| 860 | _oldRevMouse = input.IsReverseMouse(); |
| 861 | _oldJoystickEnabled = input.IsJoystickEnabled(); |
| 862 | _oldMouseButtonsReversed = input.IsMouseButtonsReversed(); |
| 863 | _oldMouseSensitivityX = input.GetMouseSensitivityX(); |
| 864 | _oldMouseSensitivityY = input.GetMouseSensitivityY(); |
| 865 | |
| 866 | C3DActiveText* ctrl = static_cast<C3DActiveText*>(GetCtrl(IDC_CONFIG_YREVERSED)); |
| 867 | if (input.IsReverseMouse()) |
| 868 | { |
| 869 | ctrl->SetText(LocalizeString(IDS_CONFIG_YREVERSED)); |
| 870 | } |
| 871 | else |
| 872 | { |
| 873 | ctrl->SetText(LocalizeString(IDS_CONFIG_YNORMAL)); |
| 874 | } |
| 875 | ctrl = static_cast<C3DActiveText*>(GetCtrl(IDC_CONFIG_JOYSTICK)); |
| 876 | if (input.IsJoystickEnabled()) |
| 877 | { |
| 878 | ctrl->SetText(LocalizeString(IDS_CONFIG_JOYSTICK_ENABLED)); |
| 879 | } |
| 880 | else |
| 881 | { |
| 882 | ctrl->SetText(LocalizeString(IDS_CONFIG_JOYSTICK_DISABLED)); |
| 883 | } |
| 884 | ctrl = static_cast<C3DActiveText*>(GetCtrl(IDC_CONFIG_BUTTONS)); |
| 885 | if (input.IsMouseButtonsReversed()) |
| 886 | { |
| 887 | ctrl->SetText(LocalizeString(IDS_RIGHT_BUTTON)); |
| 888 | } |
| 889 | else |
| 890 | { |
| 891 | ctrl->SetText(LocalizeString(IDS_LEFT_BUTTON)); |
| 892 | } |