JS Detecte o suporte do mouse

if (matchMedia('(pointer:fine)').matches) {
  // Device has a mouse
}
Homeless Hoopoe