X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/e752c10ce2c082a8654b2abd68b2cf442275cdcd..a9318661e45dfb9853c6aba811670571a5ec3ea2:/Constructor/activezone.cpp?ds=sidebyside 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"<