sample cfg file
This commit is contained in:
16
src/device/input/button/testdata/v01.yaml
vendored
Normal file
16
src/device/input/button/testdata/v01.yaml
vendored
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
users:
|
||||||
|
bel:
|
||||||
|
player: 0
|
||||||
|
message: "hi"
|
||||||
|
players:
|
||||||
|
- buttons:
|
||||||
|
up: "w"
|
||||||
|
down: "s"
|
||||||
|
left: "a"
|
||||||
|
right: "d"
|
||||||
|
l: "q"
|
||||||
|
r: "e"
|
||||||
|
a: "1"
|
||||||
|
b: "2"
|
||||||
|
x: "3"
|
||||||
|
y: "4"
|
||||||
@@ -25,6 +25,24 @@ type (
|
|||||||
N string
|
N string
|
||||||
}
|
}
|
||||||
v01Cfg struct {
|
v01Cfg struct {
|
||||||
|
Users map[string]struct {
|
||||||
|
Player int
|
||||||
|
Message string
|
||||||
|
}
|
||||||
|
Players []struct {
|
||||||
|
Buttons struct {
|
||||||
|
Up string
|
||||||
|
Down string
|
||||||
|
Left string
|
||||||
|
Right string
|
||||||
|
L string
|
||||||
|
R string
|
||||||
|
A string
|
||||||
|
B string
|
||||||
|
X string
|
||||||
|
Y string
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user