Skip to content

Conversation

@relic-se
Copy link
Contributor

@relic-se relic-se commented Sep 19, 2025

The changes included in this PR are as follows:

  • Module is changed to a package
  • mouse_cursor.bmp is included with package
  • find_and_init_boot_mouse loads included bitmap (DEFAULT_CURSOR) if cursor_image is not provided
  • If cursor_image=None, the following occurs:
    • BootMouse.tilegrid=None
    • The supervisor.runtime.display size is ignored
    • Two private variables, _x and _y, are used to keep track of mouse position
    • No boundaries are applied to mouse coordinates (can be controlled by user using x and y properties if desired)

Fixes #7

Copy link
Contributor

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. Thanks for the updates and improved flexibility of this library!

I tested this successfully on Fruit Jam 10.0.0-beta.3 with the simpletested from this repo, as-is, and modified to use None for cursor_image. And with Minesweeper and Larsio paint music PRs from the learn repo.

@FoamyGuy FoamyGuy merged commit e70a3c2 into adafruit:main Sep 29, 2025
1 check passed
@relic-se relic-se deleted the cursor-bitmap branch September 29, 2025 19:35
adafruit-adabot pushed a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Sep 30, 2025
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.

Mouse Cursor Bitmap Improvements

2 participants