add hot key to toggle cursor on and off win - english
This commit is contained in:
parent
0b689ec20d
commit
35b6d80a62
|
@ -480,6 +480,16 @@ 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);}
|
||||
|
||||
|
||||
void HK_CursorToggle(int, bool)
|
||||
{
|
||||
static int cursorVisible = ShowCursor(TRUE);
|
||||
if(cursorVisible >= 0)
|
||||
while( (cursorVisible = ShowCursor(FALSE)) >= 0);
|
||||
else
|
||||
while( (cursorVisible = ShowCursor(TRUE)) <= 0);
|
||||
}
|
||||
|
||||
//======================================================================================
|
||||
//=====================================DEFINITIONS======================================
|
||||
//======================================================================================
|
||||
|
@ -875,6 +885,12 @@ void InitCustomKeys (SCustomKeys *keys)
|
|||
keys->Rotate270.page = HOTKEY_PAGE_OTHER;
|
||||
keys->Rotate270.key = NULL;
|
||||
|
||||
keys->CursorToggle.handleKeyDown = HK_CursorToggle;
|
||||
keys->CursorToggle.code = "Toggle Cursor";
|
||||
keys->CursorToggle.name = STRW(ID_LABEL_HK62);
|
||||
keys->CursorToggle.page = HOTKEY_PAGE_OTHER;
|
||||
keys->CursorToggle.key = NULL;
|
||||
|
||||
//StateSlots Page --------------------------------------------------
|
||||
keys->NextSaveSlot.handleKeyDown = HK_NextSaveSlot;
|
||||
keys->NextSaveSlot.code = "NextSaveSlot";
|
||||
|
|
|
@ -72,6 +72,8 @@ struct SCustomKeys
|
|||
|
||||
SCustomKey Rotate0, Rotate90, Rotate180, Rotate270;
|
||||
|
||||
SCustomKey CursorToggle;
|
||||
|
||||
SCustomKey OpenROM, ReloadROM, Reset, Pause;
|
||||
|
||||
#ifdef HAVE_JIT
|
||||
|
|
|
@ -808,6 +808,7 @@
|
|||
#define ID_LABEL_HK59 4524
|
||||
#define ID_LABEL_HK60 4525
|
||||
#define ID_LABEL_HK61 4526
|
||||
#define ID_LABEL_HK62 4527
|
||||
#define IDD_MICROPHONE 5000
|
||||
#define IDM_MICROPHONESETTINGS 5001
|
||||
#define IDC_MICSAMPLEBROWSE 5003
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue