Mostly implemented mouseup on 2D player.

Someting through on_instances_moved causes an uncaught exception.
This commit is contained in:
Joseph Lenox 2018-05-12 13:40:51 -05:00
parent 539e83e74f
commit c08d0de7d0

View File

@ -210,6 +210,12 @@ void Plate2D::mouse_down(wxMouseEvent& e) {
}
void Plate2D::mouse_up(wxMouseEvent& e) {
if (e.LeftUp()) {
//if (this->drag_object.obj != -1 && this->drag_object.inst != -1) this->on_instances_moved();
this->drag_start_pos = wxPoint(-1, -1);
this->drag_object = {-1, -1};
this->SetCursor(*wxSTANDARD_CURSOR);
}
}
void Plate2D::mouse_dclick(wxMouseEvent& e) {
}