Unit 'intuition' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#amunits]

DoubleClick

Test two time values for double-click timing.

Declaration

Source position: intuition.pas line 4094

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