Lines Matching refs:ir
302 INPUT_RECORD *ir) in is_ambiwidth_event() argument
304 return ir->EventType == KEY_EVENT in is_ambiwidth_event()
305 && ir->Event.KeyEvent.bKeyDown in is_ambiwidth_event()
306 && ir->Event.KeyEvent.wRepeatCount == 1 in is_ambiwidth_event()
307 && ir->Event.KeyEvent.wVirtualKeyCode == 0x12 in is_ambiwidth_event()
308 && ir->Event.KeyEvent.wVirtualScanCode == 0x38 in is_ambiwidth_event()
309 && ir->Event.KeyEvent.UChar == 0 in is_ambiwidth_event()
310 && ir->Event.KeyEvent.dwControlKeyState == 2; in is_ambiwidth_event()
1356 INPUT_RECORD ir; in decode_mouse_event() local
1357 MOUSE_EVENT_RECORD* pmer2 = &ir.Event.MouseEvent; in decode_mouse_event()
1359 peek_console_input(g_hConIn, &ir, 1, &cRecords); in decode_mouse_event()
1361 if (cRecords == 0 || ir.EventType != MOUSE_EVENT in decode_mouse_event()
1368 read_console_input(g_hConIn, &ir, 1, &cRecords); in decode_mouse_event()
1376 read_console_input(g_hConIn, &ir, 1, &cRecords); in decode_mouse_event()
1379 peek_console_input(g_hConIn, &ir, 1, &cRecords); in decode_mouse_event()
1381 if (cRecords==0 || ir.EventType != MOUSE_EVENT) in decode_mouse_event()
1544 handle_focus_event(INPUT_RECORD ir) in handle_focus_event() argument
1546 g_fJustGotFocus = ir.Event.FocusEvent.bSetFocus; in handle_focus_event()
1562 INPUT_RECORD ir; in WaitForChar() local
1656 peek_console_input(g_hConIn, &ir, 1, &cRecords); in WaitForChar()
1681 if (ir.EventType == KEY_EVENT && ir.Event.KeyEvent.bKeyDown) in WaitForChar()
1686 if (ir.Event.KeyEvent.UChar == 0 in WaitForChar()
1687 && ir.Event.KeyEvent.wVirtualKeyCode == 13) in WaitForChar()
1689 read_console_input(g_hConIn, &ir, 1, &cRecords); in WaitForChar()
1693 if (decode_key_event(&ir.Event.KeyEvent, &ch, &ch2, in WaitForChar()
1698 read_console_input(g_hConIn, &ir, 1, &cRecords); in WaitForChar()
1700 if (ir.EventType == FOCUS_EVENT) in WaitForChar()
1701 handle_focus_event(ir); in WaitForChar()
1702 else if (ir.EventType == WINDOW_BUFFER_SIZE_EVENT) in WaitForChar()
1704 COORD dwSize = ir.Event.WindowBufferSizeEvent.dwSize; in WaitForChar()
1721 else if (ir.EventType == MOUSE_EVENT in WaitForChar()
1722 && decode_mouse_event(&ir.Event.MouseEvent)) in WaitForChar()
1789 INPUT_RECORD ir; in tgetch() local
1799 if (read_console_input(g_hConIn, &ir, 1, &cRecords) == 0) in tgetch()
1807 if (ir.EventType == KEY_EVENT) in tgetch()
1809 if (decode_key_event(&ir.Event.KeyEvent, &ch, pch2, in tgetch()
1813 else if (ir.EventType == FOCUS_EVENT) in tgetch()
1814 handle_focus_event(ir); in tgetch()
1815 else if (ir.EventType == WINDOW_BUFFER_SIZE_EVENT) in tgetch()
1817 else if (ir.EventType == MOUSE_EVENT) in tgetch()
1819 if (decode_mouse_event(&ir.Event.MouseEvent)) in tgetch()
3688 INPUT_RECORD ir; in handler_routine() local
3702 ir.EventType = KEY_EVENT; in handler_routine()
3703 ir.Event.KeyEvent.bKeyDown = TRUE; in handler_routine()
3704 ir.Event.KeyEvent.wRepeatCount = 1; in handler_routine()
3705 ir.Event.KeyEvent.wVirtualKeyCode = VK_CANCEL; in handler_routine()
3706 ir.Event.KeyEvent.wVirtualScanCode = 0; in handler_routine()
3707 ir.Event.KeyEvent.dwControlKeyState = 0; in handler_routine()
3708 ir.Event.KeyEvent.uChar.UnicodeChar = 0; in handler_routine()
3709 WriteConsoleInput(g_hConIn, &ir, 1, &out); in handler_routine()