Device.getHistory

Obtains the motion history for a pointer device; given a starting and ending timestamp, return all events in the motion history for the device in the given range of time. Some windowing systems do not support motion history, in which case, FALSE will be returned. (This is not distinguishable from the case where motion history is supported and no events were found.)

class Device
int
getHistory

Parameters

window Window

the window with respect to which which the event coordinates will be reported

start uint

starting timestamp for range of events to return

stop uint

ending timestamp for the range of events to return

events GdkTimeCoord*[]

location to store a newly-allocated array of GdkTimeCoord, or NULL. [array length=n_events]out[transfer full]

Return Value

Type: int

TRUE if the windowing system supports motion history and at least one event was found.

Meta