Sign in Join
FPDoc Onlineexperiment

gpm_getsnapshot function

In unit gpm

Return servers' current image of mouse state.

Declaration

pascal
function gpm_getsnapshot(eptr: Pgpmevent): LongInt

Description

Gpm_GetSnapshot returns the picture that the server has of the current situation in Event. This call will not read the current situation from the mouse file descriptor, but returns a buffered version.

The function returns the number of mouse buttons, or -1 if this information is not available.

Errors

None.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.