[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Kernel and Subsystems, Volume 2

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

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*/

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]