MQUERYID (Query Mouse Device Identifier)

Purpose

Queries mouse device identifier.

Syntax

#include <sys/inputdd.h>

int ioctl (FileDescriptor, MQUERYID, Arg)
int FileDescriptor;
unit *Arg;

Description

The MQUERYID ioctl subroutine call returns the identifier of the natively connected mouse.

Parameters

Item Description
FileDescriptor Specifies the open file descriptor for the mouse.
Arg Specifies the address of the location to return the mouse identifier. The mouse identifier returned in the Arg parameter is:
#define     MOUSE3B     0x01     /*..........     */
#define     MOUSE2B     0x02     /*2 Button Mouse*/