227 |
} |
} |
228 |
break; |
break; |
229 |
|
|
230 |
|
case XK_Pause: |
231 |
|
/* According to MS Keyboard Scan Code |
232 |
|
Specification, pressing Pause should result |
233 |
|
in E1 1D 45 E1 9D C5. I'm not exactly sure |
234 |
|
of how this is supposed to be sent via |
235 |
|
RDP. The code below seems to work, but with |
236 |
|
the side effect that Left Ctrl stays |
237 |
|
down. Therefore, we release it when Pause |
238 |
|
is released. */ |
239 |
|
if (pressed) |
240 |
|
{ |
241 |
|
rdp_send_input(ev_time, RDP_INPUT_SCANCODE, RDP_KEYPRESS, 0xe1, 0); |
242 |
|
rdp_send_input(ev_time, RDP_INPUT_SCANCODE, RDP_KEYPRESS, 0x1d, 0); |
243 |
|
rdp_send_input(ev_time, RDP_INPUT_SCANCODE, RDP_KEYPRESS, 0x45, 0); |
244 |
|
rdp_send_input(ev_time, RDP_INPUT_SCANCODE, RDP_KEYPRESS, 0xe1, 0); |
245 |
|
rdp_send_input(ev_time, RDP_INPUT_SCANCODE, RDP_KEYPRESS, 0x9d, 0); |
246 |
|
rdp_send_input(ev_time, RDP_INPUT_SCANCODE, RDP_KEYPRESS, 0xc5, 0); |
247 |
|
} |
248 |
|
else |
249 |
|
{ |
250 |
|
// Release Left Ctrl |
251 |
|
rdp_send_input(ev_time, RDP_INPUT_SCANCODE, RDP_KEYRELEASE, 0x1d, |
252 |
|
0); |
253 |
|
} |
254 |
|
|
255 |
|
return True; |
256 |
|
break; |
257 |
|
|
258 |
case XK_Meta_L: /* Windows keys */ |
case XK_Meta_L: /* Windows keys */ |
259 |
case XK_Super_L: |
case XK_Super_L: |
260 |
case XK_Hyper_L: |
case XK_Hyper_L: |
305 |
if (tr.scancode != 0) |
if (tr.scancode != 0) |
306 |
{ |
{ |
307 |
DEBUG_KBD(("Found key translation, scancode=0x%x, modifiers=0x%x\n", |
DEBUG_KBD(("Found key translation, scancode=0x%x, modifiers=0x%x\n", |
308 |
tr.scancode, tr.modifiers)); |
tr.scancode, tr.modifiers)); |
309 |
return tr; |
return tr; |
310 |
} |
} |
311 |
|
|