Fix low-level DS4 pad regression

This commit is contained in:
twinaphex 2020-08-28 18:53:10 +02:00
parent e725b7c013
commit a549805ad8

View File

@ -90,10 +90,12 @@ struct ps4buttons
#endif
}__attribute__((packed));
/* NOTE: This needs to be aligned
* exactly like this, don't change this */
struct ps4
{
struct ps4buttons btn;
uint8_t hatvalue[4];
struct ps4buttons btn;
uint8_t trigger[2];
};
@ -101,9 +103,9 @@ struct hidpad_ps4_data
{
struct pad_connection* connection;
hid_driver_t *driver;
struct ps4 data;
uint32_t slot;
uint16_t motors[2];
struct ps4 data; /* uint8_t alignment */
bool have_led;
};