Skip to content

Commit

Permalink
Add start/select/menu config entries
Browse files Browse the repository at this point in the history
  • Loading branch information
pelrun committed Feb 9, 2024
1 parent 1a871b3 commit 903e4b0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A full replacement for WinControls, including features not exposed in the official app.

Shoulder buttons can be reassigned, and mouse clicks can be put anywhere.
Shoulder buttons can be reassigned, and mouse clicks can be put anywhere. Start, Select and Menu buttons can be configured.

Delay between macro keystrokes can be changed arbitrarily, and the fixed 300ms delay after the end of the macro can be changed.

Expand Down Expand Up @@ -32,14 +32,13 @@ Informational options:
-k, --keys List available keycodes
```

One or all settings can be changed on the command line (e.g. `gpdconfig rumble=1`) or from an input file.
One or all settings can be changed on the command line (e.g. `gpdconfig ledmode=solid colour=FFFFFF`) or from an input file.

The following fields take keycodes (use '-k' to get a list of all valid keycodes, including mouse buttons):
`'lu', 'ld', 'll', 'lr', 'du', 'dd', 'dl', 'dr', 'a', 'b', 'x', 'y', 'l1', 'r1', 'l2', 'r2', 'l3', 'r3', 'l41', 'l42', 'l43', 'l44', 'r41', 'r42', 'r43', 'r44'`
`'lu', 'ld', 'll', 'lr', 'du', 'dd', 'dl', 'dr', 'a', 'b', 'x', 'y', 'l1', 'r1', 'l2', 'r2', 'l3', 'r3', 'start', 'select', 'menu', 'l41', 'l42', 'l43', 'l44', 'r41', 'r42', 'r43', 'r44'`

The following fields take numbers:
`'ldead', 'lcent', 'rdead', 'rcent', 'l4delay1', 'l4delay2', 'l4delay3', 'l4delay4', 'r4delay1', 'r4delay2', 'r4delay3', 'r4delay4'`

The following fields take other values:
`'rumble' (0,1,2) , 'ledmode' (off,solid,breathe,rotate), 'colour' (RRGGBB in hex)`

5 changes: 5 additions & 0 deletions gpdconfig/wincontrols/hardware.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ class WinControls():
Key(24,'l3','left stick click'),
Key(26,'r3','right stick click'),

# start select and menu
Key(28,'start','Start button'),
Key(30,'select','Select button'),
Key(32,'menu','Menu button'),

# macro keys
Key(50,'l41','L4 macro key 1'),
Key(52,'l42','L4 macro key 2'),
Expand Down

0 comments on commit 903e4b0

Please sign in to comment.