-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.toml
133 lines (117 loc) · 5.39 KB
/
example.toml
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
### ====================================================
### +++ RSNES EXAMPLE CONFIGURATION FILE +++
### ====================================================
###
### This file documents possible and recommended configuration options.
###
### DEFINITIONS:
### - `profile` is a set of global configuration options, the user may select
### - `controller-profile` is a set of configuration options concerning
### a controller, that may be selected by a `profile`
# Selects the fallback profile, when no profile is selected via `--profile <PROFILE>`.
# Note that this option must be included in every configuration file.
default-profile = "default"
# A listing of customizable `profiles` (see DEFINITIONS)
[profiles]
# This profile has the name "default" and connects a standard controller
# to port 1 and nothing to port 2.
[profiles.default]
# Connects the controller specified in `controller-profiles.default`
# to controller port 1.
port1 = "default"
# This option is intentionally left empty, to leave port2 unconnected.
# port2 = "..."
# Selects the SNES region. Possible values are:
# - "auto" automatically obtain the region from cartridge informations
# - "pal" use [PAL](https://en.wikipedia.org/wiki/PAL) region
# - "ntsc" use [NTSC](https://en.wikipedia.org/wiki/NTSC) region
region = "auto"
# Enable multi-threading support. This is intended to give a speedup
# on multi-core processors, but may sometimes lead to major slowdowns.
threaded = true
# This profile has the name "two-players" and connects standard controllers
# to both ports.
[profiles.two-players]
port1 = "two-players-1"
port2 = "two-players-2"
region = "auto"
threaded = true
# This profile has the name "only-mouse" and only connects a mouse to port 1.
[profiles.only-mouse]
port1 = "mouse"
region = "auto"
threaded = true
# This profile has the name "default-with-mouse" and connects a standard
# controller to port 1 and a mouse to port 2.
[profiles.default-with-mouse]
port1 = "default"
port2 = "mouse"
region = "auto"
threaded = true
# A listing of customizable `controller-profiles` (see DEFINITIONS)
[controller-profiles]
# This controller profile has the name "default" and is designed
# for use with standard single-player games.
[controller-profiles.default]
# Selects the controller type. Following options are possible:
# - "standard" the standard joypad
# - "mouse" the [SNES Mouse](https://en.wikipedia.org/wiki/Super_NES_Mouse)
# (see controller-profiles.mouse)
type = "standard"
# The scancode options specify a mapping of physical keyboard scancodes
# to buttons of the standard joypad controller.
# Note: this is a `type="standard"`-only option
scancodes.A = 0x24 # QWERTY `J`
scancodes.B = 0x25 # QWERTY `K`
scancodes.X = 0x26 # QWERTY `L`
scancodes.Y = 0x27 # QWERTY `;`
scancodes.Up = 0x11 # QWERTY `W`
scancodes.Left = 0x1e # QWERTY `A`
scancodes.Down = 0x1f # QWERTY `S`
scancodes.Right = 0x20 # QWERTY `D`
scancodes.L = 0x10 # QWERTY `Q`
scancodes.R = 0x12 # QWERTY `E`
scancodes.Start = 0x38 # QWERTY `Left Alt`
scancodes.Select = 0x64 # QWERTY `Right Alt`
# This controller profile has the name "two-players-1" and is designed
# for use as player 1 with standard two-player games.
[controller-profiles.two-players-1]
type = "standard"
scancodes.A = 0x13 # QWERTY `R`
scancodes.B = 0x14 # QWERTY `T`
scancodes.X = 0x15 # QWERTY `Y`
scancodes.Y = 0x16 # QWERTY `U`
scancodes.Up = 0x11 # QWERTY `W`
scancodes.Left = 0x1e # QWERTY `A`
scancodes.Down = 0x1f # QWERTY `S`
scancodes.Right = 0x20 # QWERTY `D`
scancodes.L = 0x10 # QWERTY `Q`
scancodes.R = 0x12 # QWERTY `E`
scancodes.Start = 0x38 # QWERTY `Left Alt`
scancodes.Select = 0x64 # QWERTY `Right Alt`
# This controller profile has the name "two-players-2" and is designed
# for use as player 2 with standard two-player games.
[controller-profiles.two-players-2]
type = "standard"
scancodes.A = 0x32 # QWERTY `M`
scancodes.B = 0x33 # QWERTY `,`
scancodes.X = 0x34 # QWERTY `.`
scancodes.Y = 0x35 # QWERTY `/`
scancodes.Up = 0x67 # QWERTY `Up`
scancodes.Left = 0x69 # QWERTY `Left`
scancodes.Down = 0x6c # QWERTY `Down`
scancodes.Right = 0x6a # QWERTY `Right`
scancodes.L = 0x25 # QWERTY `K`
scancodes.R = 0x26 # QWERTY `L`
# This controller profile has the name "mouse" and is designed
# for use with games supporting the SNES mouse.
[controller-profiles.mouse]
type = "mouse"
# Set the correspondent movement multiplier.
# e.g. A multiplier of 2.0 means that every movement of your mouse
# will move the in-game cursor twice as much.
# You can also use negative values to invert a mouse axis.
# This defaults to 1.0.
# Note: this is a `type="mouse"`-only option
xspeed = 0.3
yspeed = 0.3