Add methods/attributes to `mouse` builtin
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 611
- Forks
- 211
- PR merge metrics
- No merged PRs in 30d
Description
We already have mouse but it is an Enum. We could add more methods like
>>> mouse.current_pos
(548, 139)
>>> mouse.visible
False
>>> mouse.visible = not mouse.visible
>>> mouse.recent_pos
collections.deque([(521, 119), (538, 127), (548, 139)])
This would let us map mouse buttons to our constants, track recent cursor positions, etc, set cursor using image names...
Originally posted by @lordmauve in https://github.com/lordmauve/pgzero/issues/316#issuecomment-2600796992
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue concerns extending the existing mouse Enum with cursor position, visibility, recent-position tracking, button mapping, and cursor-image support. No files, tests, or entry points are named; first locate the mouse builtin and its Enum definition, then clarify which attributes are in scope and what behavior and tests would define completion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- game-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100