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

Line 80 appears to have a misalignment #126

Open
NSC9 opened this issue Feb 26, 2022 · 0 comments
Open

Line 80 appears to have a misalignment #126

NSC9 opened this issue Feb 26, 2022 · 0 comments

Comments

@NSC9
Copy link

NSC9 commented Feb 26, 2022

https://github.com/SavinaRoja/PyUserInput/blob/master/pymouse/x11.py

def button_code_to_scroll_direction(button):
    # scrollup=4, scrolldown=5, scrollleft=6, scrollright=7
    return {
        4: (1, 0),
        5: (-1, 0),
        6: (0, 1),
        7: (0, -1),
    }[button]

is this better? only asking cause the highlighting was off when i was looking at this code

def button_code_to_scroll_direction(button):
    # scrollup=4, scrolldown=5, scrollleft=6, scrollright=7
    return {
        4: (1, 0),
        5: (-1, 0),
        6: (0, 1),
        7: (0, -1),
        }[button]
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