X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/e752c10ce2c082a8654b2abd68b2cf442275cdcd..07b9abd79bb3f097d8bf67d217d077a7da4b1e46:/Constructor/activezone.cpp?ds=inline diff --git a/Constructor/activezone.cpp b/Constructor/activezone.cpp index 014439e..ee426b0 100644 --- a/Constructor/activezone.cpp +++ b/Constructor/activezone.cpp @@ -8,8 +8,15 @@ ActiveZone::~ActiveZone() { } -bool ActiveZone::on_button_press_event(GdkEventButton *e) +bool ActiveZone::on_button_press_event(GdkEventButton *event) +{ + if ( (event->type == GDK_BUTTON_PRESS) && (event->button == 1) ) { + get_pointer(temp.x,temp.y); + } + return true; +} + +bool ActiveZone::on_button_release_event(GdkEventButton *event) { - std::cout<< "hola vieja"<