Skip to content

Commit

Permalink
Add another set of buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
seanavery committed Mar 1, 2024
1 parent 7413f02 commit 8698686
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions g29py/params.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Description: Parameters for the Logitech G29 Driving Force Racing Wheel
# using ints instead of heaxadecimal for easier reading

# DEVICE
NAME = "Logitech G29 Driving Force Racing Wheel"
Expand All @@ -13,14 +14,14 @@
GAME_PAD = 0
BUTTON_MISC = 1
BUTTON_PLUS = 2
BUTTON_MINUS = 3
BUTTON_MISC2 = 3
STEERING_COARSE = 4
STEERING_FINE = 5
PEDAL_ACCELERATOR = 6
PEDAL_BRAKE = 7
PEDAL_CLUTCH = 8

# GAME PAD
# GAME PAD (axis 0)
GAME_PAD_NIL = 8

GAME_PAD_UP = 0
Expand All @@ -33,11 +34,20 @@
GAME_PAD_CIRCLE = 72
GAME_PAD_TRIANGLE = 136

# MISC
# MISC (axis 1)
MISC_NIL = 0
MISC_R2 = 4
MISC_R3 = 64
MISC_L2 = 8
MISC_L3 = 128
MISC_SHARE = 16
MISC_OPTIONS = 32

BUTTON_PLUS_NIL = 0
BUTTON_PLUS_ON = 128

MISC2_TRACK_RIGHT = 2
MISC2_TRACK_LEFT = 4
MISC2_BACK = 8
MISC2_MINUS = 1
MISC_PSTATION = 16

0 comments on commit 8698686

Please sign in to comment.