Skip to content

MTY_ControllerEvent

chrisd1100 edited this page Aug 25, 2022 · 1 revision

Controller state event.

typedef struct {
    bool      buttons[MTY_CBUTTON_MAX];
    MTY_Axis  axes[MTY_CAXIS_MAX];
    MTY_CType type;
    uint32_t  id;
    uint16_t  vid;
    uint16_t  pid;
    uint8_t   numButtons;
    uint8_t   numAxes;
} MTY_ControllerEvent;

Members

buttons[MTY_CBUTTON_MAX] (bool)

Controller buttons pressed.

axes[MTY_CAXIS_MAX] (MTY_Axis)

Controller axes.

type (MTY_CType)

Game controller type.

id (uint32_t)

Assigned controller id.

vid (uint16_t)

HID Vendor ID.

pid (uint16_t)

HID Product ID.

numButtons (uint8_t)

Number of buttons in buttons.

numAxes (uint8_t)

Number of axes in axes.

See also

Module: App

Clone this wiki locally