Mouse

... text ...

For function reference and examples we assume, that we imported systeminformation as follows:

const si = require('systeminformation');

Detected ouse Devices

All functions in this section return a promise or can be called with a callback function (parameter cb in the function reference)

Function Result object Linux BSD Mac Win Sun Comments
si.mouse(cb) [{...}] X X X mouse information
name X X X pointing device name
type X X X e.g. 'Mouse', 'Trackpad', 'Touchscreen'
vendor X X X vendor / vendor id
model X X X model / product id
serial X X X serial number
connection X X X e.g. 'internal', 'usb', 'bluetooth'
Example
const si = require('systeminformation');
si.mouse().then(data => console.log(data));
[
  {
    name: 'Apple Internal Keyboard / Trackpad',
    type: 'Trackpad',
    vendor: 'Apple',
    model: '0x0359',
    serial: 'XXXXXXXXXXXXXXXXXXXXXXX',
    connection: 'internal'
  }
]