The only thing that I understand about your question is that your mouse is not functioning properly. You do not say if this is a consistent problem, or if it occurs in spasms? Nor do you say what mouse or driver
that you are using or how it is connected? The direct answer to your question is that as far as I know, there is no diagnostic tool for the purpose that you want. It is a matter of trial and error.
EDIT: It might help if you would fill out your System Specs (lower left corner of your post, then use the update link in the lower left corner of the specs window).