forked from turican0/remc2
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathREADME_controllers
118 lines (102 loc) · 5.86 KB
/
README_controllers
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
Gamepads and joysticks
the 'gamepad' group inside the config.ini file can be used to define how gamepad controls are picked up by the game.
three different joysticks (each with two axes), two hats and six buttons can be configured using the keywords shown below.
based on user preference and device limitations, the menu navigation can share axes/hat with the camera angle (axis_yaw/pitch) or the movement controls (axis_long/trans, hat_mov).
the integer value expected is either '1'+ for enabled items or '0' for disabled ones.
possible keywords:
[gamepad]
axis_yaw = 0 ; roll and yaw axis (initiates turns during flight)
axis_yaw_inv = false ; false - no inversion needed, true - axis values need inversion
axis_pitch = 0 ; pitch (moves camera up/down during flight)
axis_pitch_inv = false
axis_long = 0 ; longitudinal movement (aka forward / back)
axis_long_inv = false
axis_trans = 0 ; transversal movement (aka strafe left/right)
axis_trans_inv = false
axis_nav_ns = 0 ; menu navigation North / South
axis_nav_ns_inv = false
axis_nav_ew = 0 ; menu navigation East / West
axis_nav_ew_inv = false
axis_fire_R = 0 ; fire right-hand spell, also right mouse button equivalent (right trigger)
axis_fire_L = 0 ; fire left-hand spell, also left mouse button equivalent (left trigger)
hat_nav = 0 ; menu navigation North / South / East / West
hat_nav_inv = false ; invert vertical axis
hat_mov = 0 ; longitudinal and transversal movement
hat_mov_inv = false ; invert vertical axis
button_spell = 0 ; joystick button-press code used for displaying the spellbook
button_minimap = 0 ; half-screen minimap
button_fire_R = 0 ; fire right-hand spell, also right mouse button equivalent
button_fire_L = 0 ; fire left-hand spell, also left mouse button equivalent
button_fwd = 0 ; joystick button-press code used for forward movement
button_back = 0 ; joystick button-press code used for backward movement
button_esc = 0 ; escape key equivalent
axis_dead_zone = 2048 ; increase if _mouse_ is unresponsive
trigger_dead_zone = 2048 ; trigger button-related dead zone
haptic_enabled = 0 ; set to 1 to try initialization of the controller's haptic engine
haptic_max_gain = 75 ; set GAIN value, if feature is supported. it limits the amplitude of all the effects between 0-100
Sample setups
XBOX controllers:
[gamepad]
axis_yaw = 4 ; roll and yaw - horizontal axis on the right joystick
axis_pitch = 5 ; pitch - vertical axis on the right joystick
axis_long = 2 ; longitudinal movement - vertical axis on the left joystick
axis_long_inv = true ; needs inversion
axis_trans = 1 ; transversal movement - horizontal axis on the left joystick
button_minimap = 1 ; half-screen minimap - (A) button
button_spell = 3 ; spellbook - (X) button
button_esc = 4 ; escape key equivalent - (Y) button
button_fire_L = 2 ; a secondary MLB equivalent for menu interaction - (B) button
axis_dead_zone = 3000 ; joysticks are quite noisy and can get bumped accidentally so definitely at least 3000
trigger_dead_zone = 3000 ; trigger button-related dead zone
; select either hat or joystick control below:
; menu navigation using the hat
;hat_nav = 1 ; menu navigation on the hat
;hat_nav_inv = true ; needs inversion on the vertical axis
; menu navigation using the left joystick:
axis_nav_ns = 2 ; menu navigation North / South
axis_nav_ns_inv = true
axis_nav_ew = 1 ; menu navigation East / West
axis_nav_ew_inv = false
; select either buttons or triggers for firing
; use buttons to fire
;button_fire_R = 6 ; fire right-hand spell - right button
;button_fire_L = 5 ; fire left-hand spell - left button
; use triggers to fire
axis_fire_R = 6 ; fire right-hand spell - right trigger
axis_fire_L = 3 ; fire left-hand spell - left trigger
haptic_enabled = 1 ; set to 1 to try initialization of the controller's haptic engine
haptic_max_gain = 90 ; set GAIN value, if feature is supported. it limits the amplitude of all the effects between 0-100
Logitech Attack 3 (the joystick shares flight and navigation modes, the 3-rd axis can be used for fwd-back movement)
[gamepad]
axis_yaw = 1 ; roll and yaw axis (initiates turns during flight)
axis_yaw_inv = false ; false - no inversion needed, true - axis values need inversion
axis_pitch = 2 ; pitch (moves camera up/down during flight)
axis_pitch_inv = false
;optional axis_long = 3 ; longitudinal movement (aka forward / back)
axis_long_inv = true
axis_nav_ns = 2 ; menu navigation North / South
axis_nav_ew = 1 ; menu navigation East / West
button_spell = 8 ; joystick button-press code used for displaying the spellbook
button_fire_R = 2 ; fire right-hand spell, also right mouse button equivalent
button_fire_L = 1 ; fire left-hand spell, also left mouse button equivalent
button_fwd = 6 ; joystick button-press code used for forward movement
button_back = 7 ; joystick button-press code used for backward movement
button_minimap = 9 ; half-screen minimap
axis_dead_zone = 2048 ; increase if _mouse_ is unresponsive
Logitech Extreme 3D PRO (the joystick shares flight and navigation modes, the 4-th axis can be used for fwd-back movement)
[gamepad]
axis_yaw = 1 ; roll and yaw axis (initiates turns during flight)
axis_yaw_inv = false ; false - no inversion needed, true - axis values need inversion
axis_pitch = 2 ; pitch (moves camera up/down during flight)
axis_pitch_inv = false
; optional axis_long = 4 ; longitudinal movement (aka forward / back)
axis_long_inv = true
axis_nav_ns = 2 ; menu navigation North / South
axis_nav_ew = 1 ; menu navigation East / West
button_spell = 7 ; joystick button-press code used for displaying the spellbook
button_minimap = 9 ; half-screen minimap
button_fire_R = 2 ; fire right-hand spell, also right mouse button equivalent
button_fire_L = 1 ; fire left-hand spell, also left mouse button equivalent
button_fwd = 5 ; joystick button-press code used for forward movement
button_back = 3 ; joystick button-press code used for backward movement
axis_dead_zone = 2048 ; increase if _mouse_ is unresponsive