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

Snes support #113

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

Conversation

mariaS210
Copy link

Since we started this implementation at EuroPython, here it is in a functional state.

Naming: gamepad/controller is joystick everywhere (sometimes shortened to joy). That could be changed, but since it was called like this in pygame, I thought to keep the naming.

Configuration: There are 2 .json files that would hold gamepad mappings - to keyboard and to specific gamepad button events (e.g X on snes has different mapping than X on xbox). A following improvement would be to add a configuration tool, with an image of gamepad, like you told us at the sprints - that would change the joysticks.json.
In regard to mapping to keyboard, the first gamepad has arrow keys + space, which allows plug-n-play for pgzero's examples: tetra, snake, pong, flappybird, asteroids, lander (a bit awkward here).

There are some unit tests checking the basic keyboard and joystick events.

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.

None yet

1 participant