- replace depreciated fgcommand "old-reinit-dialog" by "reset"
- keyboard.xml: cosmetics
This commit is contained in:
parent
dde3389421
commit
7707ddad32
2 changed files with 5 additions and 5 deletions
|
@ -22,7 +22,7 @@
|
||||||
<item>
|
<item>
|
||||||
<label>Reset</label>
|
<label>Reset</label>
|
||||||
<binding>
|
<binding>
|
||||||
<command>old-reinit-dialog</command>
|
<command>reset</command>
|
||||||
</binding>
|
</binding>
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
|
|
|
@ -18,11 +18,11 @@ top down before the key bindings are parsed.
|
||||||
var ctrl = props.globals.getNode("/devices/status/keyboard/ctrl");
|
var ctrl = props.globals.getNode("/devices/status/keyboard/ctrl");
|
||||||
var alt = props.globals.getNode("/devices/status/keyboard/alt");
|
var alt = props.globals.getNode("/devices/status/keyboard/alt");
|
||||||
|
|
||||||
var space_release = func {}
|
var space_release = func nil;
|
||||||
var space = func(state, mod) {
|
var space = func(state, mod) {
|
||||||
if (!state) {
|
if (!state) {
|
||||||
space_release();
|
space_release();
|
||||||
return space_release = func {};
|
return space_release = func nil;
|
||||||
}
|
}
|
||||||
if (mod == 0 or mod == 1) {
|
if (mod == 0 or mod == 1) {
|
||||||
controls.ptt(mod + 1);
|
controls.ptt(mod + 1);
|
||||||
|
@ -30,7 +30,7 @@ top down before the key bindings are parsed.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
## uncomment this line to get keycode reports to the terminal window
|
## uncomment this line to get keycode reports printed to the terminal window
|
||||||
#setlistener("devices/status/keyboard/event", func(n) debug.dump(n.getValues()));
|
#setlistener("devices/status/keyboard/event", func(n) debug.dump(n.getValues()));
|
||||||
</script>
|
</script>
|
||||||
</nasal>
|
</nasal>
|
||||||
|
@ -259,7 +259,7 @@ top down before the key bindings are parsed.
|
||||||
<mod-shift>
|
<mod-shift>
|
||||||
<desc>Reset FlightGear.</desc>
|
<desc>Reset FlightGear.</desc>
|
||||||
<binding>
|
<binding>
|
||||||
<command>old-reinit-dialog</command>
|
<command>reset</command>
|
||||||
</binding>
|
</binding>
|
||||||
</mod-shift>
|
</mod-shift>
|
||||||
</key>
|
</key>
|
||||||
|
|
Loading…
Reference in a new issue