Major refactoring: State, mouse and more...
This commit is contained in:
+1
-2
@@ -26,8 +26,7 @@ namespace VISEQ::BASE {
|
||||
}
|
||||
|
||||
virtual void drag() {
|
||||
Vec2Df mp = {GetMousePosition().x, GetMousePosition().y};
|
||||
position = mp + drag_offset;
|
||||
position = state->mod_mouse + drag_offset;
|
||||
}
|
||||
|
||||
virtual void putDown(){
|
||||
|
||||
Reference in New Issue
Block a user