After some research, I have found that the best solution was to use this code:
https://github.com/matthewhudson/device.js
So, the way it works, is by giving the body element class names which represent the device and orientation, and with that I can pretty much guess if the user has a mouse. (class desktop
is applied)