Skip to content

Line 80 appears to have a misalignment #126

Description

@NSC9

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]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions