CRflush: Flushes pending events.

View source: R/CRflush.R

CRflushR Documentation

Flushes pending events.

Description

Flushes pending events in event queue. These will not be returned by CRpoll_event. If type is provided, only events of this type are flushed. For available types, see CRpoll_event.

Usage

CRflush(graphics_list, type = NULL, status = NULL)

Arguments

graphics_list

List containing pointers to window, renderer etc. created with CRopen.

type

Optional string specifying which type of events to flush. Can be any type possible in CRpoll_event. If not specified (NULL), all events are flushed.

status

Optional list status with elements value and message to retrieve warnings and error messages.

Examples

CRflush(gs, type = "key_down")

lorweiuk/CREx documentation built on March 16, 2024, 3:04 a.m.