void ClickableControl::MouseDown(const Point& position, const MouseMessage& message) { if (message.GetMouseButton() == MouseButton::Left) { SetIsFocused(true); BeginPress(PressType::Mouse); CheckIsMousePressed(position, message.wParam); } }
void ClickableControl::MouseUp(const Point& position, const MouseMessage& message) { if (message.GetMouseButton() == MouseButton::Left) { EndPress(PressType::Mouse); } }