is it possible to use leonardo as a native mouse in any where or only when you installed arduiono IDE?
in other word can you use it in another computer?or device?
(note:code are uploaded before)

No, it should act like a real mouse without the IDE installed.

i donot get your purpose,may say it more clear