Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add turbo A/B buttons #183

Merged
merged 1 commit into from
May 17, 2021
Merged

Conversation

jdgleaver
Copy link
Contributor

This PR adds turbo A and B buttons, mapped respectively (by default) to RetroPad X and Y. The repeat interval can be set via a new Turbo Button Period core option.

In addition, this PR optimises fetching of the input state. At present, libretro inputs are queried (repeatedly) many times per frame, which is highly wasteful, Now the input state is determined only once per frame (directly after input_poll_cb()), and 'internal' queries read the cached state value.

Closes #165

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add "Turbo A" and "Turbo B" buttons in Controls settings
2 participants