USB HID device not detected
When your USB connection doesn't Ga-dunk, the problem can be in many places:  it can be in your USB stack, it can be in your descriptor, it can be in your hardware connections, or it can be in your own code.  Without professional USB protocol tools, this can be a very frustrating problem to run down

Start from a working example from MikroC, and change one thing at a time until it breaks!

As to your code, I don't know the MikroE middleware, but USB code I've used also waits for enumeration before doing anything USB.

Also, many compilers require that you enable your interrupts individually.  I don't see where you enable your global or USB interrupt.

There is some example code for the USB library at 
https://www.mikroe.com/forum/viewtopic.php?f=88&amp;t=60821 , and indeed, it enables interrupts