JS mendeteksi dukungan tikus

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