mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Merge pull request #3445 from jake8/add-crop-hotkey
Added Hotkey for toggling the Crop Setting
This commit is contained in:
commit
8b3bf1557f
@ -46,6 +46,7 @@ const std::string hotkey_labels[] =
|
||||
_trans("Increase IR"),
|
||||
_trans("Decrease IR"),
|
||||
|
||||
_trans("Toggle Crop"),
|
||||
_trans("Toggle Aspect Ratio"),
|
||||
_trans("Toggle EFB Copies"),
|
||||
_trans("Toggle Fog"),
|
||||
|
@ -44,6 +44,7 @@ enum Hotkey
|
||||
HK_INCREASE_IR,
|
||||
HK_DECREASE_IR,
|
||||
|
||||
HK_TOGGLE_CROP,
|
||||
HK_TOGGLE_AR,
|
||||
HK_TOGGLE_EFBCOPIES,
|
||||
HK_TOGGLE_FOG,
|
||||
|
@ -1383,6 +1383,10 @@ void CFrame::ParseHotkeys()
|
||||
if (--g_Config.iEFBScale < SCALE_AUTO)
|
||||
g_Config.iEFBScale = SCALE_AUTO;
|
||||
}
|
||||
if (IsHotkey(HK_TOGGLE_CROP))
|
||||
{
|
||||
g_Config.bCrop = !g_Config.bCrop;
|
||||
}
|
||||
if (IsHotkey(HK_TOGGLE_AR))
|
||||
{
|
||||
OSDChoice = 2;
|
||||
|
Loading…
Reference in New Issue
Block a user