Fixed Windows build as well - default input overrides in OSD modules are annoying.

This commit is contained in:
Vas Crabb 2021-11-02 16:08:24 +11:00
parent 33e55b1ca7
commit 2d220c7ba8
3 changed files with 4 additions and 9 deletions

View File

@ -12,9 +12,9 @@ code log file has the same name as the input recording file with the extension
input recording and specify the location for the output files. input recording and specify the location for the output files.
By default, the plugin records a time code when you press the **F12** key on the By default, the plugin records a time code when you press the **F12** key on the
keyboard while not pressing either **Shift** key. You can change this setting keyboard while not pressing either **Shift** or **Alt** key. You can change
in the options menu for the plugin (choose **Plugin Options** from the main menu this setting in the options menu for the plugin (choose **Plugin Options** from
during emulation, and then choose **Timecode Recorder**). the main menu during emulation, and then choose **Timecode Recorder**).
Settings for the plugin are stored in JSON format in the file **plugin.cfg** in Settings for the plugin are stored in JSON format in the file **plugin.cfg** in
the **timecode** folder inside your plugin data folder (see the the **timecode** folder inside your plugin data folder (see the

View File

@ -158,7 +158,7 @@ function timecode.startplugin()
local function start() local function start()
hotkey_seq = manager.machine.input:seq_from_tokens('KEYCODE_F12 NOT KEYCODE_LSHIFT NOT KEYCODE_RSHIFT') hotkey_seq = manager.machine.input:seq_from_tokens('KEYCODE_F12 NOT KEYCODE_LSHIFT NOT KEYCODE_RSHIFT NOT KEYCODE_LALT NOT KEYCODE_RALT')
-- try to load configuration -- try to load configuration
local cfgname = get_settings_path() .. 'plugin.cfg' local cfgname = get_settings_path() .. 'plugin.cfg'

View File

@ -139,11 +139,6 @@ void windows_osd_interface::customize_input_type_list(std::vector<input_type_ent
entry.defseq(SEQ_TYPE_STANDARD).set(KEYCODE_F12, KEYCODE_LSHIFT, KEYCODE_LCONTROL, input_seq::not_code, KEYCODE_LALT); entry.defseq(SEQ_TYPE_STANDARD).set(KEYCODE_F12, KEYCODE_LSHIFT, KEYCODE_LCONTROL, input_seq::not_code, KEYCODE_LALT);
break; break;
// add a NOT-lalt to write timecode file
case IPT_UI_TIMECODE: // emu/input.c: input_seq(KEYCODE_F12, input_seq::not_code, KEYCODE_LSHIFT)
entry.defseq(SEQ_TYPE_STANDARD).set(KEYCODE_F12, input_seq::not_code, KEYCODE_LSHIFT, input_seq::not_code, KEYCODE_LALT);
break;
// lctrl-lalt-F5 to toggle post-processing // lctrl-lalt-F5 to toggle post-processing
case IPT_OSD_4: case IPT_OSD_4:
entry.configure_osd("POST_PROCESS", N_p("input-name", "Toggle Post-Processing")); entry.configure_osd("POST_PROCESS", N_p("input-name", "Toggle Post-Processing"));