Back to work!

This commit is contained in:
Sebastian
2024-11-20 11:13:13 +01:00
parent 5779c93339
commit df91a1b107
3 changed files with 10 additions and 8 deletions
+8
View File
@@ -18,6 +18,14 @@ namespace VISEQ::BASE {
bool picked_up = false;
virtual bool entered() override {
return !is_hovering && hovering();
}
virtual bool exited() override {
return is_hovering && !hovering();
}
virtual bool pickedUp() {
if(clicked() && held() && (STATE == IState::HOVER_NODE || STATE == IState::DRAG_NODE)) {
picked_up = true;