| 594 | } |
| 595 | |
| 596 | bool MouseEventWindow::HasButton(UINT message, long x, long y) const { |
| 597 | for (const auto &event : button_events) { |
| 598 | if (event.message == message && event.x == x && event.y == y) |
| 599 | return true; |
| 600 | } |
| 601 | return false; |
| 602 | } |
| 603 | |
| 604 | void MouseEventWindow::ResetCounts() { |
| 605 | left_down = 0; |