-
Notifications
You must be signed in to change notification settings - Fork 0
/
keyboard.xml
86 lines (77 loc) · 2.33 KB
/
keyboard.xml
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
<?xml version="1.0"?>
<!--
Cargo Towing - Cargo Towing Addon for Flightgear
Written and developed by Wayne Bragg (wlbragg)
Copyright (C) 2020 Wayne Bragg
keyboard.xml
Version 1.0.0 beta 1/21/2020
Cargo Towing is licensed under the Gnu Public License v3+ (GPLv3+)
-->
<PropertyList>
<keyboard>
<key n="15">
<name>Ctrl-O</name>
<desc>Auto Attach Cargo</desc>
<binding>
<command>property-toggle</command>
<property>/sim/cargo/cargo-auto-hook</property>
</binding>
</key>
<key n="79">
<name>O</name>
<desc>Attach Cargo</desc>
<binding>
<command>property-assign</command>
<property>sim/cargo/cargo-hook</property>
<value type="bool">true</value>
</binding>
</key>
<key n="111">
<name>o</name>
<desc>Release Cargo</desc>
<binding>
<command>property-assign</command>
<property>controls/cargo-release</property>
<value type="bool">true</value>
</binding>
</key>
<key n="87">
<name>W</name>
<desc>Winch down</desc>
<repeatable type="bool">true</repeatable>
<binding>
<command>nasal</command>
<script>
var connector = getprop("/sim/gui/dialogs/aicargo-dialog/connection");
if (connector == 1)
{
var segments = getprop("/sim/cargo/rope/segments-reeled-in");
if (segments > 0)
setprop("/sim/cargo/rope/segments-reeled-in", segments - 1);
}
else
screen.log.write("Winch required!");
</script>
</binding>
</key>
<key n="119">
<name>w</name>
<desc>Winch up</desc>
<repeatable type="bool">true</repeatable>
<binding>
<command>nasal</command>
<script>
var connector = getprop("/sim/gui/dialogs/aicargo-dialog/connection");
if (connector == 1)
{
var segments = getprop("/sim/cargo/rope/segments-reeled-in");
if (87 > segments)
setprop("/sim/cargo/rope/segments-reeled-in", segments + 1);
}
else
screen.log.write("Winch required!");
</script>
</binding>
</key>
</keyboard>
</PropertyList>