Lines Matching refs:event
253 Event event; in WndProc() local
254 event.Type = Event::EVENT_CLOSED; in WndProc()
255 window->pushEvent(event); in WndProc()
269 Event event; in WndProc() local
270 event.Type = Event::EVENT_MOVED; in WndProc()
271 event.Move.X = topLeft.x; in WndProc()
272 event.Move.Y = topLeft.y; in WndProc()
273 window->pushEvent(event); in WndProc()
296 Event event; in WndProc() local
297 event.Type = Event::EVENT_RESIZED; in WndProc()
298 event.Size.Width = botRight.x - topLeft.x; in WndProc()
299 event.Size.Height = botRight.y - topLeft.y; in WndProc()
300 window->pushEvent(event); in WndProc()
307 Event event; in WndProc() local
308 event.Type = Event::EVENT_GAINED_FOCUS; in WndProc()
309 window->pushEvent(event); in WndProc()
315 Event event; in WndProc() local
316 event.Type = Event::EVENT_LOST_FOCUS; in WndProc()
317 window->pushEvent(event); in WndProc()
328 Event event; in WndProc() local
329 event.Type = down ? Event::EVENT_KEY_PRESSED : Event::EVENT_KEY_RELEASED; in WndProc()
330 event.Key.Alt = HIWORD(GetAsyncKeyState(VK_MENU)) != 0; in WndProc()
331 event.Key.Control = HIWORD(GetAsyncKeyState(VK_CONTROL)) != 0; in WndProc()
332 event.Key.Shift = HIWORD(GetAsyncKeyState(VK_SHIFT)) != 0; in WndProc()
333 event.Key.System = in WndProc()
335 event.Key.Code = VirtualKeyCodeToKey(wParam, lParam); in WndProc()
336 window->pushEvent(event); in WndProc()
343 Event event; in WndProc() local
344 event.Type = Event::EVENT_MOUSE_WHEEL_MOVED; in WndProc()
345 event.MouseWheel.Delta = static_cast<short>(HIWORD(wParam)) / 120; in WndProc()
346 window->pushEvent(event); in WndProc()
353 Event event; in WndProc() local
354 event.Type = Event::EVENT_MOUSE_BUTTON_PRESSED; in WndProc()
355 event.MouseButton.Button = MOUSEBUTTON_LEFT; in WndProc()
356 event.MouseButton.X = static_cast<short>(LOWORD(lParam)); in WndProc()
357 event.MouseButton.Y = static_cast<short>(HIWORD(lParam)); in WndProc()
358 window->pushEvent(event); in WndProc()
364 Event event; in WndProc() local
365 event.Type = Event::EVENT_MOUSE_BUTTON_RELEASED; in WndProc()
366 event.MouseButton.Button = MOUSEBUTTON_LEFT; in WndProc()
367 event.MouseButton.X = static_cast<short>(LOWORD(lParam)); in WndProc()
368 event.MouseButton.Y = static_cast<short>(HIWORD(lParam)); in WndProc()
369 window->pushEvent(event); in WndProc()
376 Event event; in WndProc() local
377 event.Type = Event::EVENT_MOUSE_BUTTON_PRESSED; in WndProc()
378 event.MouseButton.Button = MOUSEBUTTON_RIGHT; in WndProc()
379 event.MouseButton.X = static_cast<short>(LOWORD(lParam)); in WndProc()
380 event.MouseButton.Y = static_cast<short>(HIWORD(lParam)); in WndProc()
381 window->pushEvent(event); in WndProc()
388 Event event; in WndProc() local
389 event.Type = Event::EVENT_MOUSE_BUTTON_RELEASED; in WndProc()
390 event.MouseButton.Button = MOUSEBUTTON_RIGHT; in WndProc()
391 event.MouseButton.X = static_cast<short>(LOWORD(lParam)); in WndProc()
392 event.MouseButton.Y = static_cast<short>(HIWORD(lParam)); in WndProc()
393 window->pushEvent(event); in WndProc()
401 Event event; in WndProc() local
402 event.Type = Event::EVENT_MOUSE_BUTTON_PRESSED; in WndProc()
403 event.MouseButton.Button = MOUSEBUTTON_MIDDLE; in WndProc()
404 event.MouseButton.X = static_cast<short>(LOWORD(lParam)); in WndProc()
405 event.MouseButton.Y = static_cast<short>(HIWORD(lParam)); in WndProc()
406 window->pushEvent(event); in WndProc()
413 Event event; in WndProc() local
414 event.Type = Event::EVENT_MOUSE_BUTTON_RELEASED; in WndProc()
415 event.MouseButton.Button = MOUSEBUTTON_MIDDLE; in WndProc()
416 event.MouseButton.X = static_cast<short>(LOWORD(lParam)); in WndProc()
417 event.MouseButton.Y = static_cast<short>(HIWORD(lParam)); in WndProc()
418 window->pushEvent(event); in WndProc()
426 Event event; in WndProc() local
427 event.Type = Event::EVENT_MOUSE_BUTTON_PRESSED; in WndProc()
428 event.MouseButton.Button = in WndProc()
430 event.MouseButton.X = static_cast<short>(LOWORD(lParam)); in WndProc()
431 event.MouseButton.Y = static_cast<short>(HIWORD(lParam)); in WndProc()
432 window->pushEvent(event); in WndProc()
439 Event event; in WndProc() local
440 event.Type = Event::EVENT_MOUSE_BUTTON_RELEASED; in WndProc()
441 event.MouseButton.Button = in WndProc()
443 event.MouseButton.X = static_cast<short>(LOWORD(lParam)); in WndProc()
444 event.MouseButton.Y = static_cast<short>(HIWORD(lParam)); in WndProc()
445 window->pushEvent(event); in WndProc()
454 Event event; in WndProc() local
455 event.Type = Event::EVENT_MOUSE_ENTERED; in WndProc()
456 window->pushEvent(event); in WndProc()
462 Event event; in WndProc() local
463 event.Type = Event::EVENT_MOUSE_MOVED; in WndProc()
464 event.MouseMove.X = mouseX; in WndProc()
465 event.MouseMove.Y = mouseY; in WndProc()
466 window->pushEvent(event); in WndProc()
472 Event event; in WndProc() local
473 event.Type = Event::EVENT_MOUSE_LEFT; in WndProc()
474 window->pushEvent(event); in WndProc()
826 void Win32Window::pushEvent(Event event) in pushEvent() argument
828 OSWindow::pushEvent(event); in pushEvent()
830 switch (event.Type) in pushEvent()