Lines Matching refs:keysym

54 void console_key_command(rfbBool down, rfbKeySym keysym, rfbClientPtr client);
272 void console_key_command(rfbBool down, rfbKeySym keysym, rfbClientPtr client) { in console_key_command() argument
276 …if (debug_keyboard) fprintf(stderr, "console_key_command: %d %s\n", (int) keysym, down ? "down" : … in console_key_command()
290 if (keysym == XK_Control_L || keysym == XK_Control_R) { in console_key_command()
300 if (keysym == XK_Alt_L || keysym == XK_Alt_R) { in console_key_command()
313 if (keysym == XK_Escape) { in console_key_command()
314 keysym = 27; in console_key_command()
318 if (keysym >= 'a' && keysym <= 'z') { in console_key_command()
319 keysym -= ('a' - 1); in console_key_command()
320 } else if (keysym >= 'A' && keysym <= 'Z') { in console_key_command()
321 keysym -= ('A' - 1); in console_key_command()
323 keysym = 0xffff; in console_key_command()
327 if (keysym >= '!' && keysym <= '~') { in console_key_command()
328 keysym += 128; in console_key_command()
331 if (debug_keyboard) fprintf(stderr, "keysym now: %d\n", (int) keysym); in console_key_command()
332 if (keysym == XK_Tab) { in console_key_command()
333 keysym = '\t'; in console_key_command()
334 } else if (keysym == XK_Return || keysym == XK_KP_Enter) { in console_key_command()
335 keysym = '\r'; in console_key_command()
336 } else if (keysym == XK_BackSpace) { in console_key_command()
337 keysym = 8; in console_key_command()
338 } else if (keysym == XK_Home || keysym == XK_KP_Home) { in console_key_command()
339 keysym = 1; in console_key_command()
340 } else if (keysym == XK_End || keysym == XK_KP_End) { in console_key_command()
341 keysym = 5; in console_key_command()
342 } else if (keysym == XK_Up || keysym == XK_KP_Up) { in console_key_command()
343 keysym = 16; in console_key_command()
344 } else if (keysym == XK_Down || keysym == XK_KP_Down) { in console_key_command()
345 keysym = 14; in console_key_command()
346 } else if (keysym == XK_Right || keysym == XK_KP_Right) { in console_key_command()
347 keysym = 6; in console_key_command()
348 } else if (keysym == XK_Next || keysym == XK_KP_Next) { in console_key_command()
349 keysym = 6; in console_key_command()
350 } else if (keysym == XK_Left || keysym == XK_KP_Left) { in console_key_command()
351 keysym = 2; in console_key_command()
352 } else if (keysym == XK_Prior || keysym == XK_KP_Prior) { in console_key_command()
353 keysym = 2; in console_key_command()
355 if (keysym >= XK_KP_Multiply && keysym <= XK_KP_Equal) { in console_key_command()
356 keysym -= 0xFF80; in console_key_command()
360 if (keysym < 0x100) { in console_key_command()
361 if (ioctl(pipeinput_cons_fd, TIOCSTI, &keysym) != -1) { in console_key_command()
377 if (ioctl(pipeinput_cons_fd, TIOCSTI, &keysym) == -1) { in console_key_command()