[AD] yet another patch for mouse events

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


It seems I had to remove the thing I did not really understand
but still copied when adapting the existing mouse code :)
Hope it works for all of you  ....

--- gui.c       Sat Nov 25 16:09:51 2000
+++ src/gui.c   Sat Nov 25 16:10:03 2000
@@ -767,20 +767,15 @@

          if ((new_mouse_b & 2) && !(player->mouse_b & 2))
            MESSAGE(player->mouse_obj, MSG_RPRESS, new_mouse_b);
          if (!(new_mouse_b & 2) && (player->mouse_b & 2))
            MESSAGE(player->mouse_obj, MSG_RRELEASE, new_mouse_b);
-
-        if (player->res == D_O_K)
-           player->click_wait = TRUE;
       }
       else
         dialog_message(player->dialog, MSG_IDLE, 0, &nowhere);

       player->mouse_b = new_mouse_b;
-
-      goto getout;
    }

    /* need to reinstall the dclick and switch handlers? */
    if (gui_install_time != _allegro_count) {
       install_int(dclick_check, 20);

-- 
Lyrian 



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/