Syntax
int MDblClk( int speed );
Arguments
speed A positive threshold in milliseconds, or NIL or any nonpositive value to query.
Return value
The previous threshold when setting it, or the current threshold when querying it, in milliseconds.
Description
Read or change the driver's double-click threshold in milliseconds. Use a positive threshold to adjust the interval used when classifying consecutive presses. A nonpositive value, including `NIL`, queries the current threshold. Save the previous value when changing it temporarily.
Example
#include "xdev-wtui.h"
#include <stdio.h>
int main( void )
{
if( !MPresent() )
{
puts( "Mouse unavailable." );
return 0;
}
printf( "Double-click threshold: %d ms\n", MDblClk( NIL ) );
return 0;
}