button_event_get_button()

Retrieve the button from the event.

Synopsis:

#include <bps/button.h>
 
BPS_API int button_event_get_button(bps_event_t *event)

Since:

BlackBerry 10.0.0

Arguments:

event

The event to extract the button from.

Library:

libbps (For the qcc command, use the -l bps option to link against this library)

Description:

The button_event_get_button() function extracts which button has had a state change from the specified event.

Returns:

One of the values enumerated in button_physical_t or BPS_FAILURE with errno set.