delete no need output
This commit is contained in:
parent
555f5a551d
commit
f91b9cf2f0
@ -13,17 +13,17 @@ auto GUI_Window::handle(int e) -> int {
|
|||||||
mouse_status |= Mouse_Status::left_down;
|
mouse_status |= Mouse_Status::left_down;
|
||||||
this->child(2)->label("Event:Mouse Left Down");
|
this->child(2)->label("Event:Mouse Left Down");
|
||||||
vkvm::callEvent(vkvm::EventType::MouseLeftDown);
|
vkvm::callEvent(vkvm::EventType::MouseLeftDown);
|
||||||
std::cout<<mouse_status<<std::endl;
|
// std::cout<<mouse_status<<std::endl;
|
||||||
} else if (Fl::event_button() == FL_RIGHT_MOUSE) {
|
} else if (Fl::event_button() == FL_RIGHT_MOUSE) {
|
||||||
mouse_status |= Mouse_Status::right_down;
|
mouse_status |= Mouse_Status::right_down;
|
||||||
this->child(2)->label("Event:Mouse Right Down");
|
this->child(2)->label("Event:Mouse Right Down");
|
||||||
vkvm::callEvent(vkvm::EventType::MouseRightDown);
|
vkvm::callEvent(vkvm::EventType::MouseRightDown);
|
||||||
std::cout<<mouse_status<<std::endl;
|
// std::cout<<mouse_status<<std::endl;
|
||||||
} else {
|
} else {
|
||||||
mouse_status |= Mouse_Status::middle_down;
|
mouse_status |= Mouse_Status::middle_down;
|
||||||
this->child(2)->label("Event:Mouse Middle Down");
|
this->child(2)->label("Event:Mouse Middle Down");
|
||||||
vkvm::callEvent(vkvm::EventType::MouseMiddleDown);
|
vkvm::callEvent(vkvm::EventType::MouseMiddleDown);
|
||||||
std::cout<<mouse_status<<std::endl;
|
// std::cout<<mouse_status<<std::endl;
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
/*Mousebutton and movement*/
|
/*Mousebutton and movement*/
|
||||||
@ -35,17 +35,17 @@ auto GUI_Window::handle(int e) -> int {
|
|||||||
mouse_status &= Mouse_Status::left_up;
|
mouse_status &= Mouse_Status::left_up;
|
||||||
this->child(2)->label("Event:Mouse Left Up");
|
this->child(2)->label("Event:Mouse Left Up");
|
||||||
vkvm::callEvent(vkvm::EventType::MouseLeftUp);
|
vkvm::callEvent(vkvm::EventType::MouseLeftUp);
|
||||||
std::cout<<mouse_status<<std::endl;
|
// std::cout<<mouse_status<<std::endl;
|
||||||
} else if (Fl::event_button() == FL_RIGHT_MOUSE) {
|
} else if (Fl::event_button() == FL_RIGHT_MOUSE) {
|
||||||
mouse_status &= Mouse_Status::right_up;
|
mouse_status &= Mouse_Status::right_up;
|
||||||
this->child(2)->label("Event:Mouse Right Up");
|
this->child(2)->label("Event:Mouse Right Up");
|
||||||
vkvm::callEvent(vkvm::EventType::MouseRightUp);
|
vkvm::callEvent(vkvm::EventType::MouseRightUp);
|
||||||
std::cout<<mouse_status<<std::endl;
|
// std::cout<<mouse_status<<std::endl;
|
||||||
} else {
|
} else {
|
||||||
mouse_status &= Mouse_Status::middle_up;
|
mouse_status &= Mouse_Status::middle_up;
|
||||||
this->child(2)->label("Event:Mouse Middle Up");
|
this->child(2)->label("Event:Mouse Middle Up");
|
||||||
vkvm::callEvent(vkvm::EventType::MouseMiddleUp);
|
vkvm::callEvent(vkvm::EventType::MouseMiddleUp);
|
||||||
std::cout<<mouse_status<<std::endl;
|
// std::cout<<mouse_status<<std::endl;
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
case FL_DRAG:
|
case FL_DRAG:
|
||||||
|
Loading…
Reference in New Issue
Block a user