Skip to content

New Controller API#1473

Merged
Cleptomania merged 6 commits intodevelopmentfrom
new_controller_api
Jan 24, 2023
Merged

New Controller API#1473
Cleptomania merged 6 commits intodevelopmentfrom
new_controller_api

Conversation

@Cleptomania
Copy link
Member

This exposes Pyglet's controller API as discussed in #1196

I've added the controller DB from https://github.com/gabomdq/SDL_GameControllerDB as a start, and I'd imagine that will suffice for most use cases. We can update this later if we find a need or a better DB to use.

This also updates existing examples/documentation to use the new controller API instead of the old joysticks one. The joysticks API is still available for backwards compatibility, but there is no mention/coverage of it in examples or documentation, as the controller API is really the path forward.

@Cleptomania Cleptomania merged commit 8467c91 into development Jan 24, 2023
@Cleptomania Cleptomania deleted the new_controller_api branch January 24, 2023 00:10
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.

1 participant