Lines Matching refs:event

149 static std::string KeyState(const Event::KeyEvent &event)  in KeyState()  argument
151 if (event.Shift || event.Control || event.Alt || event.System) in KeyState()
156 if (event.Shift) in KeyState()
160 if (event.Control) in KeyState()
164 if (event.Alt) in KeyState()
168 if (event.System) in KeyState()
179 static void PrintEvent(const Event& event) in PrintEvent() argument
181 switch (event.Type) in PrintEvent()
187 std::cout << "Event: Window Moved (" << event.Move.X in PrintEvent()
188 << ", " << event.Move.Y << ")" << std::endl; in PrintEvent()
191 std::cout << "Event: Window Resized (" << event.Size.Width in PrintEvent()
192 << ", " << event.Size.Height << ")" << std::endl; in PrintEvent()
205 …std::cout << "Event: Key Pressed (" << KeyName(event.Key.Code) << KeyState(event.Key) << ")" << st… in PrintEvent()
208 …std::cout << "Event: Key Released (" << KeyName(event.Key.Code) << KeyState(event.Key) << ")" << s… in PrintEvent()
211 std::cout << "Event: Mouse Wheel (" << event.MouseWheel.Delta << ")" << std::endl; in PrintEvent()
214 std::cout << "Event: Mouse Button Pressed " << MouseButtonName(event.MouseButton.Button) << in PrintEvent()
215 " at (" << event.MouseButton.X << ", " << event.MouseButton.Y << ")" << std::endl; in PrintEvent()
218 std::cout << "Event: Mouse Button Released " << MouseButtonName(event.MouseButton.Button) << in PrintEvent()
219 " at (" << event.MouseButton.X << ", " << event.MouseButton.Y << ")" << std::endl; in PrintEvent()
222 std::cout << "Event: Mouse Moved (" << event.MouseMove.X in PrintEvent()
223 << ", " << event.MouseMove.Y << ")" << std::endl; in PrintEvent()
277 bool OSWindow::popEvent(Event *event) in popEvent() argument
279 if (mEvents.size() > 0 && event) in popEvent()
281 *event = mEvents.front(); in popEvent()
291 void OSWindow::pushEvent(Event event) in pushEvent() argument
293 switch (event.type) in pushEvent()
296 mX = event.move.x; in pushEvent()
297 mY = event.move.y; in pushEvent()
300 mWidth = event.size.width; in pushEvent()
301 mHeight = event.size.height; in pushEvent()
307 mEvents.push_back(event); in pushEvent()
310 PrintEvent(event); in pushEvent()