Home | History | Annotate | Download | only in qemu

Lines Matching full:keycode

166     int chr, nextchr, keysym, keycode;
206 keycode = curses2keycode[chr];
207 if (keycode == -1)
211 if (keycode == 1) {
215 keycode = curses2keycode[nextchr];
217 if (keycode == -1)
220 keycode |= ALT;
223 if (keycode >= QEMU_KEY_CONSOLE0 &&
224 keycode < QEMU_KEY_CONSOLE0 + 9) {
227 console_select(keycode - QEMU_KEY_CONSOLE0);
235 if (kbd_layout && !(keycode & GREY)) {
236 keysym = keycode2keysym[keycode & KEY_MASK];
240 keycode &= ~KEY_MASK;
241 keycode |= keysym2scancode(kbd_layout, keysym);
247 if (keycode & SHIFT)
249 if (keycode & CNTRL)
251 if (keycode & ALT)
253 if (keycode & GREY)
255 kbd_put_keycode(keycode & KEY_MASK);
256 if (keycode & GREY)
258 kbd_put_keycode((keycode & KEY_MASK) | KEY_RELEASE);
259 if (keycode & ALT)
261 if (keycode & CNTRL)
263 if (keycode & SHIFT)
304 int i, keycode, keysym;
324 keycode = curses2keycode[i] & KEY_MASK;
325 if (keycode2keysym[keycode] >= 0)
329 if (curses2keycode[keysym] == keycode) {
330 keycode2keysym[keycode] = keysym;
335 keycode2keysym[keycode] = i;