bps_event_get_code()

Get the code of an event.

Synopsis:

#include <bps/event.h>
 
BPS_API unsigned int bps_event_get_code(bps_event_t *event)

Arguments:

event
The event to get the code of.

Library:

libbps

Description:

The bps_event_get_code_() function gets the code of a BPS event. In addition to being associated with a domain, each event in BPS has a code, which represents the specific type of event that occurred. For example, the virtual keyboard service includes event codes that indicate when the keyboard becomes visible, when the keyboard becomes hidden, and so on.

Returns:

The code of the event.