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

Technical Reference: Kernel and Subsystems, Volume 2

MTHRESHOLD (Set Mouse Reporting Threshold)

Purpose

Sets mouse reporting threshold.

Syntax

#include <sys/inputdd.h>
int ioctlFileDescriptor, MTHRESHOLD, Arg)
int FileDescriptor;
ulong *Arg;

Description

The MTHRESHOLD ioctl subroutine call sets the minimum horizontal or vertical distance (in counts) that the mouse must be moved before the driver reports an event. The high-order two bytes of the Arg parameter specify the horizontal threshold and the low-order two bytes specify the vertical threshold. The minimum threshold is 0, while the maximum threshold is 32767. The default horizontal and vertical mouse reporting threshold is 22.

Parameters

FileDescriptor Specifies the open file descriptor for the mouse.
Arg Specifies the address of the desired threshold.

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