289 |
if ((keycode >= min_keycode) && (keycode <= 0x60)) |
if ((keycode >= min_keycode) && (keycode <= 0x60)) |
290 |
{ |
{ |
291 |
tr.scancode = keycode - min_keycode; |
tr.scancode = keycode - min_keycode; |
292 |
|
|
293 |
|
/* The modifiers to send for this key should be |
294 |
|
obtained from the local state. Currently, only |
295 |
|
shift is implemented. */ |
296 |
|
if (state & ShiftMask) |
297 |
|
{ |
298 |
|
tr.modifiers = MapLeftShiftMask; |
299 |
|
} |
300 |
|
|
301 |
fprintf(stderr, "Sending guessed scancode 0x%x\n", tr.scancode); |
fprintf(stderr, "Sending guessed scancode 0x%x\n", tr.scancode); |
302 |
} |
} |
303 |
else |
else |
376 |
{ |
{ |
377 |
/* Should not use this modifier. Send up. */ |
/* Should not use this modifier. Send up. */ |
378 |
rdp_send_scancode(ev_time, RDP_KEYRELEASE, SCANCODE_CHAR_LSHIFT); |
rdp_send_scancode(ev_time, RDP_KEYRELEASE, SCANCODE_CHAR_LSHIFT); |
379 |
|
rdp_send_scancode(ev_time, RDP_KEYRELEASE, SCANCODE_CHAR_RSHIFT); |
380 |
} |
} |
381 |
} |
} |
382 |
|
|