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.)

Note that there is also gdk_window_set_event_compression() to get more motion events delivered directly, independent of the windowing system.

class Device
bool
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

Return Value

Type: bool

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

Meta