From a4f965a00d12679025102f0ab4795aa00f9889fe Mon Sep 17 00:00:00 2001 From: "BADIM-PC\\Vadim" Date: Mon, 26 Feb 2018 14:14:10 +0300 Subject: [PATCH] press F6 to switch CRT monitor --- src/studio.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/studio.c b/src/studio.c index b0ab165..24de149 100644 --- a/src/studio.c +++ b/src/studio.c @@ -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))