mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Fix low-level DS4 pad regression
This commit is contained in:
parent
e725b7c013
commit
a549805ad8
@ -90,10 +90,12 @@ struct ps4buttons
|
|||||||
#endif
|
#endif
|
||||||
}__attribute__((packed));
|
}__attribute__((packed));
|
||||||
|
|
||||||
|
/* NOTE: This needs to be aligned
|
||||||
|
* exactly like this, don't change this */
|
||||||
struct ps4
|
struct ps4
|
||||||
{
|
{
|
||||||
struct ps4buttons btn;
|
|
||||||
uint8_t hatvalue[4];
|
uint8_t hatvalue[4];
|
||||||
|
struct ps4buttons btn;
|
||||||
uint8_t trigger[2];
|
uint8_t trigger[2];
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -101,9 +103,9 @@ struct hidpad_ps4_data
|
|||||||
{
|
{
|
||||||
struct pad_connection* connection;
|
struct pad_connection* connection;
|
||||||
hid_driver_t *driver;
|
hid_driver_t *driver;
|
||||||
struct ps4 data;
|
|
||||||
uint32_t slot;
|
uint32_t slot;
|
||||||
uint16_t motors[2];
|
uint16_t motors[2];
|
||||||
|
struct ps4 data; /* uint8_t alignment */
|
||||||
bool have_led;
|
bool have_led;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user