Skip to content

Commit 0f18e66

Browse files
committed
Fix second Joy-Con detection, touchpad, and add tilt stick emulation
1 parent e1390b3 commit 0f18e66

11 files changed

+236
-47
lines changed

BINDINGS.RU.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
Нажатие WASD | `WASD`
1111
Нажатие стрелок | `ARROWS`
1212
Нажатие стрелок NUMPAD | `NUMPAD-ARROWS`
13-
Нажатие стрелок NUMPAD | `CUSTOM-BUTTONS`
13+
Нажатие выбранных кнопок | `CUSTOM-BUTTONS`
1414
Движение мыши | `MOUSE-LOOK`
1515
Прокрутка колесика мыши | `MOUSE-WHEEL`
1616

@@ -36,13 +36,13 @@ RS-DOWN = NONE
3636
```
3737

3838
## Руль (движение геймпада наклонами)
39-
При переключении режима на вождение наклоны геймпада по оси X используются для эмуляции нажатий кнопок влево и вправо на D-Pad.
39+
При переключении режима на вождение наклоны геймпада по оси X используются для эмуляции движения левого стика по горизонатнльй оси, также можно эмулировать нажатия кнопок влево и вправо на D-Pad включив параметр изменив параметр `SteeringWheelUseDPAD` на `1`, в разделе `MOTION`.
4040

4141
Если наклон находится в пределах мёртвой зоны - руль считается в нулевом положении, и нажатия не эмулируются.
4242

43-
Параметр `SteeringWheelDeadZone` отвечает за мертвую зону руля, задается в процентах, от `0` до `100`.
43+
Параметр `SteeringWheelDeadZone` отвечает за мертвую зону руля, задается в процентах, от `0` до `100`, в разделе `MOTION`.
4444

45-
Параметр `SteeringWheelReleaseThreshold` определяет, насколько сильно руль должен вернуться к центру, чтобы прекратилось удержание направления, задается в процентах, от `0` до `100`.
45+
Параметр `SteeringWheelReleaseThreshold` определяет, насколько сильно руль должен вернуться к центру, чтобы прекратилось удержание направления, задается в процентах, от `0` до `100`, в разделе `MOTION`.
4646

4747
## Колесо жестов (мульти кнопка)
4848
Колесо жестов позволяет назначить на одну кнопку до 9 эмуляций других кнопок. Происходят они путем зажатия заданной кнопки `WHEEL-ACTIVATION`, после чего нужно нужно наклонить геймпад в одну из 4 или 8 сторон и произойдет эмуляция кнопки. Если наклона не произошло, то эмулируется стандартная заданная кнопка `WHEEL-DEFAULT`.

BINDINGS.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Mode | Value
99
Pressing WASD | `WASD`
1010
Pressing arrows | `ARROWS`
1111
Pressing NUMPADs arrows | `NUMPAD-ARROWS`
12-
Pressing NUMPADs arrows | `CUSTOM-BUTTONS`
12+
Pressing the selected buttons | `CUSTOM-BUTTONS`
1313
Mouse movement | `MOUSE-LOOK`
1414
Mouse wheel scrolling | `MOUSE-WHEEL`
1515

@@ -36,13 +36,13 @@ To enable support for a second player, duplicate the `[FIRST-GAMEPAD]` section a
3636
```
3737

3838
## Steering Wheel (gamepad tilt movement)
39-
When switching to driving mode, tilts of the gamepad along the X-axis are used to emulate presses of the D-Pad buttons: left and right.
39+
When switching to driving mode, the gamepad tilts along the X-axis are used to emulate the movement of the left stick along the horizontal axis. You can also emulate left and right D-Pad button presses by enabling the parameter `SteeringWheelUseDPAD` and setting it to `1` in the `MOTION` section.
4040

41-
If the tilt is within the dead zone, the wheel is considered centered, and no button presses are emulated.
41+
If the tilt is within the dead zone, the steering wheel is considered to be in the neutral position, and button presses are not emulated.
4242

43-
Parameter `SteeringWheelDeadZone` defines the wheel's dead zone, specified in percent, from 0 to 100.
43+
The `SteeringWheelDeadZone` parameter defines the steering wheel dead zone, set in percent, from `0` to `100`, in the `MOTION` section.
4444

45-
Parameter `SteeringWheelReleaseThreshold` determines how far the wheel must return to the center to stop holding the direction, specified in percent, from 0 to 100.
45+
The `SteeringWheelReleaseThreshold` parameter determines how strongly the wheel must return to the center for directional hold to stop, set in percent, from `0` to `100`, in the `MOTION` section.
4646

4747
## Motion Wheel Buttons (Multi-Button)
4848
The motion wheel buttons allows assigning up to 9 emulations of other buttons to a single button. This is done by holding the specified `WHEEL-ACTIVATION` button, then tilting the gamepad in one of 4 or 8 directions to trigger the button emulation. If no tilt occurs, the default assigned button `WHEEL-DEFAULT` is emulated.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
[FIRST-GAMEPAD]
2+
LT=MOUSE-RIGHT
3+
RT=MOUSE-LEFT
4+
5+
L1-LB=NUMPAD6
6+
R1-RB=NUMPAD9
7+
8+
BACK=ESCAPE
9+
START=NUMPAD-PLUS
10+
11+
UP=NUMPAD-ENTER
12+
UP-LEFT=NONE
13+
LEFT=LSHIFT
14+
UP-RIGHT=NONE
15+
RIGHT=R
16+
DOWN=NUMPAD-DEL
17+
DOWN-LEFT=NONE
18+
DOWN-RIGHT=NONE
19+
20+
TRIANGLE-Y=TAB
21+
SQUARE-X=ENTER
22+
CROSS-A=SPACE
23+
CIRCLE-B=C
24+
25+
LS-MODE=ARROWS
26+
LS=X
27+
28+
RS-MODE=CUSTOM-BUTTONS
29+
RS-UP = NONE
30+
RS-LEFT = NUMPAD4
31+
RS-RIGHT = NUMPAD5
32+
RS-DOWN = NONE
33+
RS=Z
34+
35+
[MOUSE]
36+
SensitivityX=70
37+
SensitivityY=60
38+
39+
[MOTION]
40+
# Percent 0 - 100%
41+
SteeringWheelDeadZone=17
42+
SteeringWheelReleaseThreshold=2
43+
SteeringWheelUseDPAD=0
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[FIRST-GAMEPAD]
2+
LT=MOUSE-RIGHT
3+
RT=MOUSE-LEFT
4+
5+
L1-LB=Q
6+
R1-RB=E
7+
8+
BACK=ESCAPE
9+
START=NUMPAD-PLUS
10+
11+
UP=NUMPAD-ENTER
12+
UP-LEFT=NONE
13+
LEFT=LSHIFT
14+
UP-RIGHT=NONE
15+
RIGHT=R
16+
DOWN=NUMPAD-DEL
17+
DOWN-LEFT=NONE
18+
DOWN-RIGHT=NONE
19+
20+
TRIANGLE-Y=TAB
21+
SQUARE-X=ENTER
22+
CROSS-A=SPACE
23+
CIRCLE-B=C
24+
25+
LS-MODE=ARROWS
26+
LS=X
27+
28+
RS-MODE=MOUSE-LOOK
29+
RS=Z
30+
31+
[MOUSE]
32+
SensitivityX=70
33+
SensitivityY=60
34+
35+
[MOTION]
36+
# Percent 0 - 100%
37+
SteeringWheelDeadZone=17
38+
SteeringWheelReleaseThreshold=2
39+
SteeringWheelUseDPAD=0

KMProfiles/Knight Rider The Game (2002).ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@ SensitivityY=100
4343
[MOTION]
4444
# Percent 0 - 100%
4545
SteeringWheelDeadZone=17
46-
SteeringWheelReleaseThreshold=3
46+
SteeringWheelReleaseThreshold=3
47+
SteeringWheelUseDPAD=0

KMProfiles/Need For Speed - Underground (2003).ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ SensitivityY=100
4040
# Percent 0 - 100%
4141
SteeringWheelDeadZone=17
4242
SteeringWheelReleaseThreshold=2
43-
43+
SteeringWheelUseDPAD=0

KMProfiles/Spider-Man (2001).ini

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[FIRST-GAMEPAD]
2+
LT=NUMPAD7
3+
RT=NUMPAD9
4+
5+
L1-LB=A
6+
R1-RB=NUMPAD3
7+
8+
BACK=ESCAPE
9+
START=ENTER
10+
11+
UP=UP
12+
UP-LEFT=NONE
13+
UP-RIGHT=NONE
14+
LEFT=LEFT
15+
RIGHT=RIGHT
16+
DOWN=DOWN
17+
DOWN-LEFT=NONE
18+
DOWN-RIGHT=NONE
19+
20+
TRIANGLE-Y=NUMPAD8
21+
SQUARE-X=NUMPAD4
22+
CROSS-A=NUMPAD2
23+
CIRCLE-B=NUMPAD6
24+
25+
LS-MODE=ARROWS
26+
LS=NONE
27+
28+
RS-MODE=NONE
29+
RS=NONE
30+
31+
[MOUSE]
32+
SensitivityX=90
33+
SensitivityY=90

KMProfiles/Whiteout (2002).ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ SensitivityY=100
4040
# Percent 0 - 100%
4141
SteeringWheelDeadZone=17
4242
SteeringWheelReleaseThreshold=3
43-
43+
SteeringWheelUseDPAD=0

0 commit comments

Comments
 (0)