Skip to content

Commit

Permalink
manually linted the failing file
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanburmane committed Oct 12, 2024
1 parent 1ea17b6 commit 790cb61
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions ros/gamepad/src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,36 @@

# Mapping of JoyAxisMotion events to gamepad_state keys
# The number is the axis given by pygame
JOY_AXIS = {1: 'LSY', 0: 'LSX', 4: 'RSY', 3: 'RSX', 2: 'LT', 5: 'RT'}
JOY_AXIS = {1: "LSY", 0: "LSX", 4: "RSY", 3: "RSX", 2: "LT", 5: "RT"}

# Mapping of JoyButton events to gamepad_state keys
# The number is the button given by pygame
JOY_BUTTON = {3: 'Y', 1: 'B', 0: 'A', 2: 'X', 9: 'LSZ', 10: 'RSZ', 4: 'LB', 5: 'RB', 8: 'XBOX', 6: 'START', 7: 'MENU'}
JOY_BUTTON_KEY = {'Y': 3, 'B': 1, 'A': 0, 'X': 2, 'LSZ': 9, 'RSZ': 10, 'LB': 4, 'RB': 5, 'XBOX': 8, 'START': 6, 'MENU': 7}
JOY_BUTTON = {
3: "Y",
1: "B",
0: "A",
2: "X",
9: "LSZ",
10: "RSZ",
4: "LB",
5: "RB",
8: "XBOX",
6: "START",
7: "MENU",
}
JOY_BUTTON_KEY = {
"Y": 3,
"B": 1,
"A": 0,
"X": 2,
"LSZ": 9,
"RSZ": 10,
"LB": 4,
"RB": 5,
"XBOX": 8,
"START": 6,
"MENU": 7,
}

gamepad_state = {
"LSX": 0.0,
Expand Down

0 comments on commit 790cb61

Please sign in to comment.