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

Add repeating A and B keys #97

Closed lesleyrs closed 1 month ago

lesleyrs commented 5 months ago

Title says it all, more convenient repeat feature like BGB has.

Also I get 4x speed on Peanut-GB where SameBoy is getting me like 1 fps on postmarketOS (linux phone)

It's able to work on touchscreen without changes by modifying the onscreen keyboard which is quite cool 👍

<img src="https://github.com/deltabeard/Peanut-GB/assets/19632758/5cf932cf-67da-45e2-99ca-d9c2c87e4d99" height="640">

Edit: I noticed there's a problem with the repeating keys, where if u press another key it will stop repeating even if it's still pressed? Still going to use it though.

deltabeard commented 4 months ago

Thank you for your contribution! Would you be able to only include the first two commits in this pull request (9cdbfdc and 3a065f8) please? Since the following commits, while useful, aren't relevant to the pull request. Thanks!