Remove super key workaround
Moonlight can now pass the super key natively
This commit is contained in:
@@ -290,8 +290,8 @@ uint16_t keysym(uint16_t modcode) {
|
|||||||
return XK_Control_R;
|
return XK_Control_R;
|
||||||
case 0xA4:
|
case 0xA4:
|
||||||
return XK_Alt_L;
|
return XK_Alt_L;
|
||||||
case 0xA5: /* return XK_Alt_R; */
|
case 0xA5:
|
||||||
return XK_Super_L;
|
return XK_Alt_R;
|
||||||
case 0x5B:
|
case 0x5B:
|
||||||
return XK_Super_L;
|
return XK_Super_L;
|
||||||
case 0x5C:
|
case 0x5C:
|
||||||
|
|||||||
@@ -201,10 +201,6 @@ void scroll(input_t &input, int distance) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void keyboard(input_t &input, uint16_t modcode, bool release) {
|
void keyboard(input_t &input, uint16_t modcode, bool release) {
|
||||||
if(modcode == VK_RMENU) {
|
|
||||||
modcode = VK_LWIN;
|
|
||||||
}
|
|
||||||
|
|
||||||
INPUT i {};
|
INPUT i {};
|
||||||
i.type = INPUT_KEYBOARD;
|
i.type = INPUT_KEYBOARD;
|
||||||
auto &ki = i.ki;
|
auto &ki = i.ki;
|
||||||
|
|||||||
Reference in New Issue
Block a user