Skip to content

Different mouse button #456

Answered by MaelkMaelk
MaelkMaelk asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, I found how to while digging in the code
For anyone wondering, you need to change one of the buttons' attribute:

button.generate_click_events_from: Iterable[int] = frozenset([pygame.BUTTON_LEFT,pygame.BUTTON_RIGHT])

You can change what keys trigger the event in the list

Also you need to import Iterable for it to work.

from typing import Iterable

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MaelkMaelk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant