/[rdesktop]/sourceforge.net/trunk/rdesktop/xkeymap.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/xkeymap.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 193 by matthewc, Tue Sep 24 11:14:46 2002 UTC revision 197 by astrand, Wed Sep 25 11:07:57 2002 UTC
# Line 227  handle_special_keys(uint32 keysym, uint3 Line 227  handle_special_keys(uint32 keysym, uint3
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:
# Line 277  xkeymap_translate_key(uint32 keysym, uns Line 305  xkeymap_translate_key(uint32 keysym, uns
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    

Legend:
Removed from v.193  
changed lines
  Added in v.197

  ViewVC Help
Powered by ViewVC 1.1.26