/[rdesktop]/jpeg/rdesktop/trunk/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 /jpeg/rdesktop/trunk/xkeymap.c

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

revision 260 by astrand, Mon Nov 18 15:31:19 2002 UTC revision 297 by matthewc, Tue Jan 28 12:27:28 2003 UTC
# Line 27  Line 27 
27  #include "rdesktop.h"  #include "rdesktop.h"
28  #include "scancodes.h"  #include "scancodes.h"
29    
30  #define KEYMAP_SIZE 4096  #define KEYMAP_SIZE 0xffff+1
31  #define KEYMAP_MASK (KEYMAP_SIZE - 1)  #define KEYMAP_MASK 0xffff
32  #define KEYMAP_MAX_LINE_LENGTH 80  #define KEYMAP_MAX_LINE_LENGTH 80
33    
34  extern Display *display;  extern Display *display;
# Line 51  add_to_keymap(char *keyname, uint8 scanc Line 51  add_to_keymap(char *keyname, uint8 scanc
51          keysym = XStringToKeysym(keyname);          keysym = XStringToKeysym(keyname);
52          if (keysym == NoSymbol)          if (keysym == NoSymbol)
53          {          {
54                  error("Bad keysym %s in keymap %s\n", keyname, mapname);                  warning("Bad keysym %s in keymap %s\n", keyname, mapname);
55                  return;                  return;
56          }          }
57    
# Line 344  xkeymap_translate_key(uint32 keysym, uns Line 344  xkeymap_translate_key(uint32 keysym, uns
344          }          }
345    
346          if (keymap_loaded)          if (keymap_loaded)
347                  error("No translation for (keysym 0x%lx, %s)\n", keysym, get_ksname(keysym));                  warning("No translation for (keysym 0x%lx, %s)\n", keysym, get_ksname(keysym));
348    
349          /* not in keymap, try to interpret the raw scancode */          /* not in keymap, try to interpret the raw scancode */
350          if ((keycode >= min_keycode) && (keycode <= 0x60))          if ((keycode >= min_keycode) && (keycode <= 0x60))

Legend:
Removed from v.260  
changed lines
  Added in v.297

  ViewVC Help
Powered by ViewVC 1.1.26