X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/e752c10ce2c082a8654b2abd68b2cf442275cdcd..f29a7129de56edca96ea8ef58576898c1e52ed6f:/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"<