Skip to content

Commit 7f4b9cf

Browse files
author
loki
committed
Change where keycode is mapped
1 parent 9c0ea17 commit 7f4b9cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sunshine/input.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ short map_keycode(short keycode) {
371371
* Update flags for keyboard shortcut combo's
372372
*/
373373
inline void update_shortcutFlags(int *flags, short keyCode, bool release) {
374-
switch(map_keycode(keyCode)) {
374+
switch(keyCode) {
375375
case VKEY_SHIFT:
376376
case VKEY_LSHIFT:
377377
case VKEY_RSHIFT:
@@ -452,7 +452,7 @@ void passthrough(std::shared_ptr<input_t> &input, PNV_KEYBOARD_PACKET packet) {
452452

453453
pressed = !release;
454454

455-
update_shortcutFlags(&input->shortcutFlags, keyCode, release);
455+
update_shortcutFlags(&input->shortcutFlags, map_keycode(keyCode), release);
456456
platf::keyboard(platf_input, map_keycode(keyCode), release);
457457
}
458458

0 commit comments

Comments
 (0)