Skip to content

Conversation

@samsepro
Copy link

@samsepro samsepro commented Dec 8, 2025

This pull request improves the documentation for the following modules:

  • pygame.camera
  • pygame._sdl2.controller

A note has been added/clarified in the documentation to explicitly mention that these modules must be imported before being used.

The change includes a clearer code example:

import pygame.camera

and

import pygame
import pygame._sdl2.controller

No change was made to pygame.joystick as it does not require an explicit import.

This improvement addresses issue #3922 by making the documentation clearer for new users.

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