Exemplo n.º 1
0
void ClickableControl::MouseDown(const Point& position, const MouseMessage& message) {

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

    if (message.GetMouseButton() == MouseButton::Left) {
		EndPress(PressType::Mouse);
	}
}