-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontrols.cfg
79 lines (73 loc) · 4.01 KB
/
controls.cfg
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
// Encoding: UTF-8.
//Single-line comments like this are allowed, and must begin with two slashes (//). Anything before the slashes is considered not part of a comment.
//Action and control must be separated by a tab character, not spaces.
//Any action not specified here will use its default value. The same goes for things specified in invalid ways (i.e. putting letters where numbers should be).
//Actions must be spelled exactly as they are in this original file, but are not case-sensitive. "Screenshot" is the same as "SCREENshoT" but not "screeeeen shot"
//Controls can be assigned to multiple actions. Actions can be assigned to multiple controls. One assignment per line.
//Keyboard controls must use integer keycodes.
//Keyboard controls
Menu Activate Key 27 //The 'Esc' key opens the menu.
Menu Activate Key 18 //Some keyboards have a separate menu key, so we'll let people use that too.
Menu Activate Key 19 //The 'Pause/Break' key should pause the game.
screenshot Key 42 //Print screen.
SCREENSHOT Key 80 //Not all computers have a print screen key, so let's accept the P key too.
ScreenShot Key 44 //I've never seen a keyboard with this key, but apparently they exist.
//Note that the action can either be spelled out ("down") or abbreviated ("d")
//For controls that affect a specific player, start with "Player", then a space, then the player number, another space, then the action, then a tab, and finally the control.
//Player Number Action Keycode
Player 0 Up Key 38 //Arrow key up
Player 0 Down Key 40 //Arrow key down
Player 0 Left Key 37 //Arrow key left
Player 0 Right Key 39 //Arrow key right
Player 1 U Key 87
Player 1 D Key 83
Player 1 L Key 65
Player 1 R Key 68
Player 2 U Key 84
Player 2 D Key 71
Player 2 L Key 70
Player 2 R Key 72
Player 3 U Key 73
Player 3 D Key 75
Player 3 L Key 74
Player 3 R Key 76
//In networked multiplayer, the server will assign player numbers. These are still considered "controls that affect a specific player", it's just that the player number is assigned at game time.
Player Mine Up Key 38 //Arrow key up
Player Mine Down Key 40 //Arrow key down
Player Mine Left Key 37 //Arrow key left
Player Mine Right Key 39 //Arrow key right
Menu Up Key 38 //Arrow key up
Menu Down Key 40 //Arrow key down
//Mouse controls
VolumeUp Mouse Wheel Up
VolumeDown Mouse WHEEL down
// The next two lines are examples of using the mouse to control a player
Player 0 L Mouse LeftButton Down//"Mouse LeftButton Down" means the left mouse button is pressed (up would mean released)
//Player 0 LEFT Mouse Move Left //Mouse movement is extremely sensitive
//Player 0 R Mouse Move Right
//Player 0 D Mouse Move D
//Player 0 Up Mouse Move Up
//controller/gamepad/joystick controls
//For controllers with multiple joysticks, this program detects them as a single joystick with multiple axes labeled X, Y, Z, R, U, and V (e.g. X and Y might be the first joystick, Z and R the second joystick, and U and V the third)
Enable controller false //Default: false. If enabled, the program will try to detect and use a controller
Player 0 Up controller 0 Button 4
Player 0 Down controller 0 Button 2
Player 0 Left controller 0 Button 1
Player 0 Right controller 0 Button 3
Volume Up controller 0 Button 6
volume UP controller 0 Button 8
Volume down controller 0 button 5
volume down controller 0 button 7
Player 0 Up controller 0 joystick Y Decrease
Player 0 Down controller 0 joystick Y Increase
Player 0 RIGHT controller 0 joystick X Increase
Player 0 LEFT controller 0 joystick X Decrease
Player 0 Up controller 0 Joystick V Decrease
Player 0 Down controller 0 Joystick V Increase
Player 0 Left controller 0 Joystick U Decrease
Player 0 Right controller 0 Joystick U Increase
dead zone controller 0 joystick DeadZone 50 //Default: 50. Indicates how far (as a percent) that a joystick has to be moved away from center in order to count.
Menu Activate controller 0 Button 10
Menu Up controller 0 joystick Y decrease
Menu Down controller 0 joystick Y increase
SCREENSHOT controller 0 Button 9