|
From: <fli...@li...> - 2023-06-28 18:59:12
|
deltaecho pushed a commit to branch next
in repository fgdata.
The following commit(s) were added to refs/heads/next by this push:
new 92f5c2b6e Add hitch keyboard file for common hitch key controls
92f5c2b6e is described below
SF URL: http://sourceforge.net/p/flightgear/fgdata/ci/92f5c2b6eed7513ad7f5f04e4c11bbee8c735ef7/
Commit: 92f5c2b6eed7513ad7f5f04e4c11bbee8c735ef7
Author: Benedikt Wolf
Committer: Benedikt Wolf
AuthorDate: Wed Jun 28 20:58:20 2023 +0200
Add hitch keyboard file for common hitch key controls
---
Aircraft/Generic/hitch-keyboard.xml | 67 +++++++++++++++++++++++++++++++++++++
1 file changed, 67 insertions(+)
diff --git a/Aircraft/Generic/hitch-keyboard.xml b/Aircraft/Generic/hitch-keyboard.xml
new file mode 100644
index 000000000..4e9cc645a
--- /dev/null
+++ b/Aircraft/Generic/hitch-keyboard.xml
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<PropertyList>
+ <key n="23">
+ <name>Ctrl-w</name>
+ <desc>Place winch in front of aircraft and start it</desc>
+ <binding>
+ <command>nasal</command>
+ <script>
+ towing.setWinchPositionAuto();
+ settimer(towing.runWinch, 1);
+ </script>
+ </binding>
+ </key>
+ <key n="119">
+ <name>w</name>
+ <desc>Increase winch speed</desc>
+ <binding>
+ <command>nasal</command>
+ <script>
+ towing.winch_faster();
+ </script>
+ </binding>
+ </key>
+ <key n="87">
+ <name>Shift-W</name>
+ <desc>Decrease winch speed</desc>
+ <binding>
+ <command>nasal</command>
+ <script>
+ towing.winch_slower();
+ </script>
+ </binding>
+ </key>
+ <key n="15">
+ <name>Ctrl-o</name>
+ <desc>Find aircraft for aerotow</desc>
+ <binding>
+ <command>nasal</command>
+ <script>
+ towing.findBestAIObject();
+ </script>
+ </binding>
+ </key>
+ <key n="111">
+ <name>o</name>
+ <desc>Open hook</desc>
+ <binding>
+ <command>property-assign</command>
+ <property>/sim/hitches/hook-open</property>
+ <value type="bool">true</value>
+ </binding>
+ <binding>
+ <command>nasal</command>
+ <script>
+ towing.releaseHitch("winch");
+ towing.releaseHitch("aerotow");
+ </script>
+ </binding>
+ <mod-up>
+ <binding>
+ <command>property-assign</command>
+ <property>/sim/hitches/hook-open</property>
+ <value type="bool">false</value>
+ </binding>
+ </mod-up>
+ </key>
+</PropertyList>
|