Fix Default Freelook Hotkey to Match Description (For Real This Time)

This commit is contained in:
Benjamin Przybocki 2015-01-20 16:35:20 -06:00 committed by Buddybenj
parent 37a770bb9f
commit 9291d61d98
4 changed files with 7 additions and 7 deletions

View File

@ -47,8 +47,8 @@ enum Hotkey
HK_INCREASE_FRAME_LIMIT, HK_INCREASE_FRAME_LIMIT,
HK_DECREASE_FRAME_LIMIT, HK_DECREASE_FRAME_LIMIT,
HK_FREELOOK_INCREASE_SPEED,
HK_FREELOOK_DECREASE_SPEED, HK_FREELOOK_DECREASE_SPEED,
HK_FREELOOK_INCREASE_SPEED,
HK_FREELOOK_RESET_SPEED, HK_FREELOOK_RESET_SPEED,
HK_FREELOOK_UP, HK_FREELOOK_UP,
HK_FREELOOK_DOWN, HK_FREELOOK_DOWN,

View File

@ -978,8 +978,8 @@ int GetCmdForHotkey(unsigned int key)
case HK_SAVE_STATE_SLOT_SELECTED: return IDM_SAVE_SELECTED_SLOT; case HK_SAVE_STATE_SLOT_SELECTED: return IDM_SAVE_SELECTED_SLOT;
case HK_LOAD_STATE_SLOT_SELECTED: return IDM_LOAD_SELECTED_SLOT; case HK_LOAD_STATE_SLOT_SELECTED: return IDM_LOAD_SELECTED_SLOT;
case HK_FREELOOK_INCREASE_SPEED: return IDM_FREELOOK_INCREASE_SPEED;
case HK_FREELOOK_DECREASE_SPEED: return IDM_FREELOOK_DECREASE_SPEED; case HK_FREELOOK_DECREASE_SPEED: return IDM_FREELOOK_DECREASE_SPEED;
case HK_FREELOOK_INCREASE_SPEED: return IDM_FREELOOK_INCREASE_SPEED;
case HK_FREELOOK_RESET_SPEED: return IDM_FREELOOK_RESET_SPEED; case HK_FREELOOK_RESET_SPEED: return IDM_FREELOOK_RESET_SPEED;
case HK_FREELOOK_LEFT: return IDM_FREELOOK_LEFT; case HK_FREELOOK_LEFT: return IDM_FREELOOK_LEFT;
case HK_FREELOOK_RIGHT: return IDM_FREELOOK_RIGHT; case HK_FREELOOK_RIGHT: return IDM_FREELOOK_RIGHT;
@ -1212,10 +1212,10 @@ void CFrame::OnKeyDown(wxKeyEvent& event)
{ {
static float debugSpeed = 1.0f; static float debugSpeed = 1.0f;
if (IsHotkey(event, HK_FREELOOK_INCREASE_SPEED)) if (IsHotkey(event, HK_FREELOOK_DECREASE_SPEED))
debugSpeed *= 2.0f;
else if (IsHotkey(event, HK_FREELOOK_DECREASE_SPEED))
debugSpeed /= 2.0f; debugSpeed /= 2.0f;
else if (IsHotkey(event, HK_FREELOOK_INCREASE_SPEED))
debugSpeed *= 2.0f;
else if (IsHotkey(event, HK_FREELOOK_RESET_SPEED)) else if (IsHotkey(event, HK_FREELOOK_RESET_SPEED))
debugSpeed = 1.0f; debugSpeed = 1.0f;
else if (IsHotkey(event, HK_FREELOOK_UP)) else if (IsHotkey(event, HK_FREELOOK_UP))

View File

@ -287,8 +287,8 @@ enum
IDM_MPANEL, ID_STATUSBAR, IDM_MPANEL, ID_STATUSBAR,
IDM_FREELOOK_INCREASE_SPEED,
IDM_FREELOOK_DECREASE_SPEED, IDM_FREELOOK_DECREASE_SPEED,
IDM_FREELOOK_INCREASE_SPEED,
IDM_FREELOOK_RESET_SPEED, IDM_FREELOOK_RESET_SPEED,
IDM_FREELOOK_UP, IDM_FREELOOK_UP,
IDM_FREELOOK_DOWN, IDM_FREELOOK_DOWN,

View File

@ -231,8 +231,8 @@ void HotkeyConfigDialog::CreateHotkeyGUIControls()
_("Increase Frame limit"), _("Increase Frame limit"),
_("Decrease Frame limit"), _("Decrease Frame limit"),
_("Freelook Increase Speed"),
_("Freelook Decrease Speed"), _("Freelook Decrease Speed"),
_("Freelook Increase Speed"),
_("Freelook Reset Speed"), _("Freelook Reset Speed"),
_("Freelook Move Up"), _("Freelook Move Up"),
_("Freelook Move Down"), _("Freelook Move Down"),