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