From 84923d5b79de917bf622a8ba7de5c1d7768aa353 Mon Sep 17 00:00:00 2001 From: jimw <jimw> Date: Fri, 14 Feb 2003 02:35:42 +0000 Subject: [PATCH] Bound keys for view scrolling as suggested by Martin Spott. "v" scrolls forward as it always has (not using the cycle-view command). shift+"V" scrolls in reverse through the views. Ctrl-V returns to view 0 (cockpit). Both forward and reverse scrolls wrap. --- keyboard.xml | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/keyboard.xml b/keyboard.xml index b656a8b39..e9876b25d 100644 --- a/keyboard.xml +++ b/keyboard.xml @@ -112,6 +112,16 @@ calculated by adding 256 to the GLUT key value in glut.h. </binding> </key> + <key n="22"> + <name>Ctrl-V</name> + <desc>Select initial view (view 0).</desc> + <binding> + <command>property-assign</command> + <property>/sim/current-view/view-number</property> + <value>0</value> + </binding> + </key> + <key n="27"> <name>ESC</name> <desc>Prompt and quit FlightGear.</desc> @@ -639,11 +649,14 @@ calculated by adding 256 to the GLUT key value in glut.h. <key n="86"> <name>V</name> - <desc>Select initial view (view 0).</desc> + <desc>Scroll in reverse through views.</desc> <binding> - <command>property-assign</command> - <property>/sim/current-view/view-number</property> - <value>0</value> + <command>property-adjust</command> + <property>/sim/current-view/view-number</property> + <step type="int">-1</step> + <min type="int">0</min> + <max type="int">5</max> + <wrap type="bool">true</wrap> </binding> </key> @@ -858,8 +871,14 @@ calculated by adding 256 to the GLUT key value in glut.h. <key n="118"> <name>v</name> <desc>Cycle view</desc> + <desc>Scroll in reverse through views.</desc> <binding> - <command>view-cycle</command> + <command>property-adjust</command> + <property>/sim/current-view/view-number</property> + <step type="int">1</step> + <min type="int">0</min> + <max type="int">5</max> + <wrap type="bool">true</wrap> </binding> </key>