deltabeard / Peanut-GB

A Game Boy (DMG) emulator single header library written in C99. Performance is prioritised over accuracy.
https://projects.deltabeard.com/peanutgb/
276 stars 35 forks source link

Deprecate non-portable joypad_bits bitfield #106

Closed ccawley2011 closed 1 month ago

ccawley2011 commented 1 month ago

This has been split out from PR #103 and modified to simply deprecate the bitfield rather than outright removing it.

The joypad_bits bitfield has been removed since it relied on specific positions, however the layout is not standardised and may differ between compilers: https://stackoverflow.com/questions/19376426/order-of-fields-when-using-a-bit-field-in-c