Interweaving of commands

when I touch anywhere on the screen player shoots bullets … but sometimes I need to touch some objects to rotate or drag … how can I stop bullets when I touch another object… I tried to stop bullets when I touch another object but it didn’t work … what I should do?

Might need some conditions like this:

Mouse button pressed or touch held
NOT
  The cursor/touch is on an object (draggable_item)

well it working thank you very much