Different mouse button #456
Answered
by
MaelkMaelk
MaelkMaelk
asked this question in
Q&A
-
Hello, |
Beta Was this translation helpful? Give feedback.
Answered by
MaelkMaelk
May 20, 2023
Replies: 1 comment
-
Ok, I found how to while digging in the code 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 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
MaelkMaelk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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