Lines Matching refs:INPUT
140 // Populate the INPUT structure with the appropriate keyboard event
142 bool FillKeyboardInput(ui::KeyboardCode key, INPUT* input, bool key_up) {
143 memset(input, 0, sizeof(INPUT));
144 input->type = INPUT_KEYBOARD;
145 input->ki.wVk = ui::WindowsKeyCodeForKeyboardCode(key);
146 input->ki.dwFlags = key_up ? KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP :
154 INPUT input = { 0 };
156 if (!FillKeyboardInput(key, &input, up))
159 if (!::SendInput(1, &input, sizeof(INPUT)))
186 INPUT input[8] = { 0 }; // 8, assuming all the modifiers are activated.
190 if (!FillKeyboardInput(ui::VKEY_CONTROL, &input[i], false))
196 if (!FillKeyboardInput(ui::VKEY_SHIFT, &input[i], false))
202 if (!FillKeyboardInput(ui::VKEY_MENU, &input[i], false))
207 if (!FillKeyboardInput(key, &input[i], false))
211 if (!FillKeyboardInput(key, &input[i], true))
216 if (!FillKeyboardInput(ui::VKEY_MENU, &input[i], true))
222 if (!FillKeyboardInput(ui::VKEY_SHIFT, &input[i], true))
228 if (!FillKeyboardInput(ui::VKEY_CONTROL, &input[i], true))
233 if (::SendInput(i, input, sizeof(INPUT)) != i)
252 INPUT input = { 0 };
259 input.type = INPUT_MOUSE;
260 input.mi.dwFlags = MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_MOVE;
261 input.mi.dx = pixel_x;
262 input.mi.dy = pixel_y;
267 if (!::SendInput(1, &input, sizeof(INPUT)))
308 INPUT input = { 0 };
309 input.type = INPUT_MOUSE;
310 input.mi.dwFlags = down_flags;
311 if ((state & DOWN) && !::SendInput(1, &input, sizeof(INPUT)))
314 input.mi.dwFlags = up_flags;
315 if ((state & UP) && !::SendInput(1, &input, sizeof(INPUT)))