JS wykrywa wsparcie myszy

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