replaced define ncurses mouse (BUTTON1_... BUTTON2_...) by (D_LEFT_BUTTON_... D_RIGHT_BUTTON_...), more simple
changed value argument in mouseinterval() from 1 to -1, -1 is special value to obtain the interval without altering it
added check mouse button clicked or pressed in all obj ui