Lines Matching refs:ip
2806 INPUT_RECORD ip;
2829 PeekConsoleInput(tty, &ip, 1, &read);
2832 ReadConsoleInput(tty, &ip, 1, &read);
2834 if (mousecap && ip.EventType == MOUSE_EVENT &&
2835 ip.Event.MouseEvent.dwEventFlags != MOUSE_MOVED)
2837 x11mousebuf[3] = X11MOUSE_OFFSET + ip.Event.MouseEvent.dwMousePosition.X + 1;
2838 x11mousebuf[4] = X11MOUSE_OFFSET + ip.Event.MouseEvent.dwMousePosition.Y + 1;
2839 switch (ip.Event.MouseEvent.dwEventFlags)
2842 if (ip.Event.MouseEvent.dwButtonState == 0)
2844 else if (ip.Event.MouseEvent.dwButtonState & (FROM_LEFT_3RD_BUTTON_PRESSED | FROM_LEFT_4TH_BUTTON_PRESSED))
2847 x11mousebuf[2] = X11MOUSE_OFFSET + X11MOUSE_BUTTON1 + ((int)ip.Event.MouseEvent.dwButtonState << 1);
2850 x11mousebuf[2] = X11MOUSE_OFFSET + (((int)ip.Event.MouseEvent.dwButtonState < 0) ? X11MOUSE_WHEEL_DOWN : X11MOUSE_WHEEL_UP);
2861 } while (ip.EventType != KEY_EVENT ||
2862 ip.Event.KeyEvent.bKeyDown != TRUE ||
2863 ip.Event.KeyEvent.wVirtualScanCode == 0 ||
2864 ip.Event.KeyEvent.wVirtualKeyCode == VK_SHIFT ||
2865 ip.Event.KeyEvent.wVirtualKeyCode == VK_CONTROL ||
2866 ip.Event.KeyEvent.wVirtualKeyCode == VK_MENU);
2868 currentKey.ascii = ip.Event.KeyEvent.uChar.AsciiChar;
2869 currentKey.scan = ip.Event.KeyEvent.wVirtualScanCode;
2870 keyCount = ip.Event.KeyEvent.wRepeatCount;
2872 if (ip.Event.KeyEvent.dwControlKeyState &
2881 } else if (ip.Event.KeyEvent.dwControlKeyState &
2896 } else if (ip.Event.KeyEvent.dwControlKeyState & SHIFT_PRESSED)