Unit 'Intuition' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#aros]

DoubleClick

Test two time values for double-click timing.

Declaration

Source position: intuition.pas line 3204

function DoubleClick(

  SSeconds: LongWord;

  SMicros: LongWord;

  CSeconds: LongWord;

  CMicros: LongWord

):LongBool;

Arguments

SSeconds

  

The timestamp value describing the start of the double-click time period you are considering

SMicros

  

Microseconds of start

CSeconds

  

The timestamp value describing the end of the double-click time period you are considering

CMicros

  

Microsecond of end

Function result

If the difference between the supplied timestamp values is within the double-click time range in the current set of Preferences, this function returns True, else it returns False

Description

Compares the difference in the time values with the double-click timeout range that the user has set (using the "Preferences" tool) or some other program has configured into the system. If the difference between the specified time values is within the current double-click time range, this function returns True, else it returns False.

These time values can be found in input events and IDCMP messages. The time values are not perfect; however, they are precise enough for nearly all applications.

See also

CurrentTime

  

Get the current time values.


Documentation generated on: 2021-07-30