win32-apply patch #3540789 (Rotation Hotkey(s))
This commit is contained in:
parent
4f2b3feee4
commit
b209420a38
|
@ -451,6 +451,12 @@ void HK_DecreasePressure(int, bool justPressed) {
|
||||||
osd->addLine("Stylus Pressure to %d%%",CommonSettings.StylusPressure);
|
osd->addLine("Stylus Pressure to %d%%",CommonSettings.StylusPressure);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void HK_Rotate0(int, bool justPressed) { SetRotate(MainWindow->getHWnd(), 0);}
|
||||||
|
void HK_Rotate90(int, bool justPressed) { SetRotate(MainWindow->getHWnd(), 90);}
|
||||||
|
void HK_Rotate180(int, bool justPressed) { SetRotate(MainWindow->getHWnd(), 180);}
|
||||||
|
void HK_Rotate270(int, bool justPressed) { SetRotate(MainWindow->getHWnd(), 270);}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//======================================================================================
|
//======================================================================================
|
||||||
//=====================================DEFINITIONS======================================
|
//=====================================DEFINITIONS======================================
|
||||||
|
@ -808,6 +814,31 @@ void InitCustomKeys (SCustomKeys *keys)
|
||||||
keys->ResetLagCounter.page = HOTKEY_PAGE_MOVIE;
|
keys->ResetLagCounter.page = HOTKEY_PAGE_MOVIE;
|
||||||
keys->ResetLagCounter.key = NULL;
|
keys->ResetLagCounter.key = NULL;
|
||||||
|
|
||||||
|
//Other Page -------------------------------------------------------
|
||||||
|
keys->Rotate0.handleKeyDown = HK_Rotate0;
|
||||||
|
keys->Rotate0.code = "Rotate0";
|
||||||
|
keys->Rotate0.name = STRW(ID_LABEL_HK57);
|
||||||
|
keys->Rotate0.page = HOTKEY_PAGE_OTHER;
|
||||||
|
keys->Rotate0.key = NULL;
|
||||||
|
|
||||||
|
keys->Rotate90.handleKeyDown = HK_Rotate90;
|
||||||
|
keys->Rotate90.code = "Rotate90";
|
||||||
|
keys->Rotate90.name = STRW(ID_LABEL_HK58);
|
||||||
|
keys->Rotate90.page = HOTKEY_PAGE_OTHER;
|
||||||
|
keys->Rotate90.key = NULL;
|
||||||
|
|
||||||
|
keys->Rotate180.handleKeyDown = HK_Rotate180;
|
||||||
|
keys->Rotate180.code = "Rotate180";
|
||||||
|
keys->Rotate180.name = STRW(ID_LABEL_HK59);
|
||||||
|
keys->Rotate180.page = HOTKEY_PAGE_OTHER;
|
||||||
|
keys->Rotate180.key = NULL;
|
||||||
|
|
||||||
|
keys->Rotate270.handleKeyDown = HK_Rotate270;
|
||||||
|
keys->Rotate270.code = "Rotate270";
|
||||||
|
keys->Rotate270.name = STRW(ID_LABEL_HK60);
|
||||||
|
keys->Rotate270.page = HOTKEY_PAGE_OTHER;
|
||||||
|
keys->Rotate270.key = NULL;
|
||||||
|
|
||||||
//StateSlots Page --------------------------------------------------
|
//StateSlots Page --------------------------------------------------
|
||||||
keys->NextSaveSlot.handleKeyDown = HK_NextSaveSlot;
|
keys->NextSaveSlot.handleKeyDown = HK_NextSaveSlot;
|
||||||
keys->NextSaveSlot.code = "NextSaveSlot";
|
keys->NextSaveSlot.code = "NextSaveSlot";
|
||||||
|
|
|
@ -30,6 +30,7 @@ enum HotkeyPage {
|
||||||
HOTKEY_PAGE_STATE,
|
HOTKEY_PAGE_STATE,
|
||||||
HOTKEY_PAGE_STATE_SLOTS,
|
HOTKEY_PAGE_STATE_SLOTS,
|
||||||
HOTKEY_PAGE_TURBO,
|
HOTKEY_PAGE_TURBO,
|
||||||
|
HOTKEY_PAGE_OTHER,
|
||||||
NUM_HOTKEY_PAGE,
|
NUM_HOTKEY_PAGE,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -39,6 +40,7 @@ static LPCTSTR hotkeyPageTitle[] = {
|
||||||
_T("Savestates"),
|
_T("Savestates"),
|
||||||
_T("Savestate Slots"),
|
_T("Savestate Slots"),
|
||||||
_T("Turbo"),
|
_T("Turbo"),
|
||||||
|
_T("Other"),
|
||||||
_T("NUM_HOTKEY_PAGE"),
|
_T("NUM_HOTKEY_PAGE"),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -65,6 +67,8 @@ struct SCustomKeys
|
||||||
SCustomKey Slot[10];
|
SCustomKey Slot[10];
|
||||||
SCustomKey QuickSave, QuickLoad, NextSaveSlot, PreviousSaveSlot;
|
SCustomKey QuickSave, QuickLoad, NextSaveSlot, PreviousSaveSlot;
|
||||||
|
|
||||||
|
SCustomKey Rotate0, Rotate90, Rotate180, Rotate270;
|
||||||
|
|
||||||
SCustomKey OpenROM, ReloadROM, Reset, Pause, FrameAdvance, FastForward, FastForwardToggle, IncreaseSpeed, DecreaseSpeed, FrameLimitToggle, Microphone, IncreasePressure, DecreasePressure;
|
SCustomKey OpenROM, ReloadROM, Reset, Pause, FrameAdvance, FastForward, FastForwardToggle, IncreaseSpeed, DecreaseSpeed, FrameLimitToggle, Microphone, IncreasePressure, DecreasePressure;
|
||||||
|
|
||||||
SCustomKey PlayMovie, RecordMovie, StopMovie, ToggleReadOnly;
|
SCustomKey PlayMovie, RecordMovie, StopMovie, ToggleReadOnly;
|
||||||
|
|
|
@ -435,8 +435,6 @@ bool romloaded = false;
|
||||||
|
|
||||||
void SetScreenGap(int gap);
|
void SetScreenGap(int gap);
|
||||||
|
|
||||||
void SetRotate(HWND hwnd, int rot, bool user=true);
|
|
||||||
|
|
||||||
bool ForceRatio = true;
|
bool ForceRatio = true;
|
||||||
bool SeparationBorderDrag = true;
|
bool SeparationBorderDrag = true;
|
||||||
int ScreenGapColor = 0xFFFFFF;
|
int ScreenGapColor = 0xFFFFFF;
|
||||||
|
|
|
@ -41,6 +41,7 @@ void WavRecordTo(int wavmode);
|
||||||
void WavEnd();
|
void WavEnd();
|
||||||
void UpdateToolWindows();
|
void UpdateToolWindows();
|
||||||
bool DemandLua();
|
bool DemandLua();
|
||||||
|
void SetRotate(HWND hwnd, int rot, bool user = true);
|
||||||
|
|
||||||
extern bool frameCounterDisplay;
|
extern bool frameCounterDisplay;
|
||||||
extern bool FpsDisplay;
|
extern bool FpsDisplay;
|
||||||
|
|
|
@ -800,6 +800,10 @@
|
||||||
#define ID_LABEL_HK54 4519
|
#define ID_LABEL_HK54 4519
|
||||||
#define ID_LABEL_HK55 4520
|
#define ID_LABEL_HK55 4520
|
||||||
#define ID_LABEL_HK56 4521
|
#define ID_LABEL_HK56 4521
|
||||||
|
#define ID_LABEL_HK57 4522
|
||||||
|
#define ID_LABEL_HK58 4523
|
||||||
|
#define ID_LABEL_HK59 4524
|
||||||
|
#define ID_LABEL_HK60 4525
|
||||||
#define IDD_MICROPHONE 5000
|
#define IDD_MICROPHONE 5000
|
||||||
#define IDM_MICROPHONESETTINGS 5001
|
#define IDM_MICROPHONESETTINGS 5001
|
||||||
#define IDC_MICSAMPLEBROWSE 5003
|
#define IDC_MICSAMPLEBROWSE 5003
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue