Browse Source

libobs: Add <> or \| on RT 102-key as hotkey

Closes jp9000/obs-studio#948
adocilesloth 8 years ago
parent
commit
4c61ae9513
2 changed files with 4 additions and 0 deletions
  1. 2 0
      libobs/obs-hotkeys.h
  2. 2 0
      libobs/obs-windows.c

+ 2 - 0
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)

+ 2 - 0
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;