Share via


JOYOEMPOLLDATA structure

The JOYOEMPOLLDATA structure is passed to the joystick minidriver for a poll request.

Syntax

typedef struct {
  DWORD  id;
  DWORD  do_other;
  JOYPOS jp;
  DWORD  dwPOV;
  DWORD  dwButtons;
  DWORD  dwButtonNumber;
} JOYOEMPOLLDATA, *LPJOYOEMPOLLDATA;

Members

  • id
    Indicates the identifier of the device being polled.

  • do_other
    The definition of this member depends on the type of poll. The type of polling and the definition of this parameter are:

    • JOY_OEMPOLL_POLL1
      Axis to poll.

    • JOY_OEMPOLL_POLL2
      Unused.

    • JOY_OEMPOLL_POLL3
      Poll X, Y, and R if nonzero, or poll X, Y, and Z otherwise.

    • JOY_OEMPOLL_POLL4
      Unused.

    • JOY_OEMPOLL_POLL5
      Poll X, Y, Z, R, and V if nonzero, or poll X, Y, Z, R, and U otherwise.

    • JOY_OEMPOLL_POLL6
      Unused.

    • JOY_OEMPOLL_GETBUTTONS
      Unused.

    • JOY_OEMPOLL_PASSDRIVERDATA
      DWORD of data to pass to the driver. (This was introduced in DirectX 3.0.)

  • jp
    Contains the axis data.

  • dwPOV
    Contains the point-of-view (POV) hat information (0 to 35999).

  • dwButtons
    Specifies a bitmap of pressed buttons, with the first button in the least-significant bit.

  • dwButtonNumber
    Specifies the number of the lowest button number pressed, or zero if none. For example, this parameter is 1 for the first button, is 2 for the second, or is 1 for the first and second.

Requirements

Header

Dinput.h (include Dinput.h)

 

 

Send comments about this topic to Microsoft