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

Add methods/attributes to mouse builtin #334

Open
lordmauve opened this issue Jan 19, 2025 · 0 comments
Open

Add methods/attributes to mouse builtin #334

lordmauve opened this issue Jan 19, 2025 · 0 comments

Comments

@lordmauve
Copy link
Owner

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 #316 (comment)

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

No branches or pull requests

1 participant