Lines Matching refs:kb_state
267 KEYBOARD_STATE kb_state; variable
353 kb_state.state = KEYBOARD; in keyboard_interrupt()
358 kb_state.state = RESYNC; in keyboard_interrupt()
359 kb_state.len = 1; /* skip max. 1 another byte */ in keyboard_interrupt()
369 switch (kb_state.state) in keyboard_interrupt()
375 kb_state.state = AMOUSE; in keyboard_interrupt()
376 kb_state.len = 0; in keyboard_interrupt()
383 kb_state.state = RMOUSE; in keyboard_interrupt()
384 kb_state.len = 1; in keyboard_interrupt()
385 kb_state.buf[0] = scancode; in keyboard_interrupt()
389 kb_state.state = CLOCK; in keyboard_interrupt()
390 kb_state.len = 0; in keyboard_interrupt()
395 kb_state.state = JOYSTICK; in keyboard_interrupt()
396 kb_state.len = 1; in keyboard_interrupt()
397 kb_state.buf[0] = scancode; in keyboard_interrupt()
458 kb_state.buf[kb_state.len++] = scancode; in keyboard_interrupt()
459 if (kb_state.len == 5) in keyboard_interrupt()
461 kb_state.state = KEYBOARD; in keyboard_interrupt()
468 kb_state.buf[kb_state.len++] = scancode; in keyboard_interrupt()
469 if (kb_state.len == 3) in keyboard_interrupt()
471 kb_state.state = KEYBOARD; in keyboard_interrupt()
473 atari_mouse_interrupt_hook(kb_state.buf); in keyboard_interrupt()
478 kb_state.buf[1] = scancode; in keyboard_interrupt()
479 kb_state.state = KEYBOARD; in keyboard_interrupt()
480 atari_joystick_interrupt(kb_state.buf); in keyboard_interrupt()
484 kb_state.buf[kb_state.len++] = scancode; in keyboard_interrupt()
485 if (kb_state.len == 6) in keyboard_interrupt()
487 kb_state.state = KEYBOARD; in keyboard_interrupt()
496 if (kb_state.len <= 0 || IS_SYNC_CODE(scancode)) { in keyboard_interrupt()
497 kb_state.state = KEYBOARD; in keyboard_interrupt()
500 kb_state.len--; in keyboard_interrupt()
696 kb_state.state = JOYSTICK_MONITOR;
786 kb_state.state = KEYBOARD; in atari_keyb_init()
787 kb_state.len = 0; in atari_keyb_init()