Reference Manual - 1.0.0
IDirectFBInputDevice   GetButtons

Get a mask of currently pressed buttons.

GetButtons (
  IDirectFBInputDevice   * thiz,
  DFBInputDeviceButtonMask   * ret_buttons
);

The first button corrensponds to the right most bit.