press F6 to switch CRT monitor

This commit is contained in:
BADIM-PC\Vadim 2018-02-26 14:14:10 +03:00
parent 8df5c9e0d7
commit a4f965a00d
1 changed files with 7 additions and 0 deletions

View File

@ -1300,6 +1300,11 @@ static inline bool keyWasPressedOnce(s32 key)
return tic->api.keyp(tic, key, -1, -1);
}
static void switchCrtMonitor()
{
impl.config->data.crtMonitor = !impl.config->data.crtMonitor;
}
static void processShortcuts()
{
tic_mem* tic = impl.studio.tic;
@ -1310,6 +1315,8 @@ static void processShortcuts()
bool alt = tic->api.key(tic, tic_key_alt);
bool ctrl = tic->api.key(tic, tic_key_ctrl);
if(keyWasPressedOnce(tic_key_f6)) switchCrtMonitor();
if(isGameMenu())
{
if(keyWasPressedOnce(tic_key_escape))