From 4c61ae9513deeb331e6621237f4344257b10ebb9 Mon Sep 17 00:00:00 2001 From: adocilesloth Date: Sat, 17 Jun 2017 14:40:56 +0200 Subject: [PATCH] libobs: Add <> or \| on RT 102-key as hotkey Closes jp9000/obs-studio#948 --- libobs/obs-hotkeys.h | 2 ++ libobs/obs-windows.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/libobs/obs-hotkeys.h b/libobs/obs-hotkeys.h index 74b5e9e25..dadb44604 100644 --- a/libobs/obs-hotkeys.h +++ b/libobs/obs-hotkeys.h @@ -475,3 +475,5 @@ OBS_MOUSE_BUTTON(OBS_KEY_MOUSE29) #undef OBS_MOUSE_BUTTON #undef OBS_MOUSE_BUTTON_DEFAULT #endif + +OBS_HOTKEY(OBS_KEY_BACKSLASH_RT102) diff --git a/libobs/obs-windows.c b/libobs/obs-windows.c index 5433889e1..410169a5a 100644 --- a/libobs/obs-windows.c +++ b/libobs/obs-windows.c @@ -336,6 +336,8 @@ static int get_virtual_key(obs_key_t key) case OBS_KEY_HANGUL: return VK_HANGUL; + case OBS_KEY_BACKSLASH_RT102: return VK_OEM_102; + case OBS_KEY_MOUSE1: return VK_LBUTTON; case OBS_KEY_MOUSE2: return VK_RBUTTON; case OBS_KEY_MOUSE3: return VK_MBUTTON;