USB HID Joystick

Nikarus..

Before post this topic i found a looot of stuff for HID joystick but then i realised that i dont know basic things.

I already tried the UnoJoy project, (13 buttons 2 axis) and it worked for me but ONLY for the FIRST time that i connect duino in a USB port,then stopped working! i tried another port, it worked and then stop again! dont know why!
i also found a guide to extend Unojoy to 30 buttons by modifing USB descriptors, reports etc but i dont know how to make my final custom firmware to flash the bootloader.

i use arduino IDE but i think that this software doesnt create .hex files. Any suggestions ?