hammerspoon2-docs
    Preparing search index...

    Function count

    • Returns the number of mouse devices currently attached to the system.

      Parameters

      • includeInternal: boolean

        When true, built-in pointing devices (e.g. the MacBook built-in trackpad) are included. Defaults to false.

      Returns number

      The number of attached mouse devices.