Name

gii_pbutton_event — LibGII pointer button events

Synopsis

#include <ggi/events.h>

Description

typedef struct gii_pbutton_event {

        COMMON_DATA;

        uint32  button;

} gii_pbutton_event;

Button events are sent to report a change in pointer button state. Depending on the event type, the button is either being pressed or released.

Generated Events

This structure is used for evPtrButtonPress and evPtrButtonRelease events.

Structure Members

gii_pbutton_event simply specifies that the button is pressed or released.

Pointer buttons are specified in order of common usage, with 1 being the primary button:

#define GII_PBUTTON_LEFT        1
#define GII_PBUTTON_PRIMARY     1
#define GII_PBUTTON_FIRST       1

#define GII_PBUTTON_RIGHT       2
#define GII_PBUTTON_SECONDARY   2
#define GII_PBUTTON_SECOND      2

#define GII_PBUTTON_MIDDLE      3
#define GII_PBUTTON_TERTIARY    3
#define GII_PBUTTON_THIRD       3
    

Of course, applications should avoid hardcoding mouse button values.

See Also

gii_event(3)