1
0
Fork 0
Commit graph

114 commits

Author SHA1 Message Date
mfranz
be69a60b3e keyboard.xml: define modifier bit values 2008-08-14 22:26:09 +00:00
mfranz
0116c65fc4 ctrl-i happens to be the same key as Tab, and this does often pop up the
dialog when one actually wanted to switch virtual desktops. There's no need
for a keyaboard shortcut, as the dialog is available from the menu and not
needed that often.
2008-08-09 19:57:32 +00:00
mfranz
7707ddad32 - replace depreciated fgcommand "old-reinit-dialog" by "reset"
- keyboard.xml: cosmetics
2008-07-09 12:26:18 +00:00
mfranz
e603302d8d use fgcommand("screen-capture") return value to show error message 2008-04-26 22:36:04 +00:00
mfranz
eee5773db5 use modifier mask as reported by the input system 2008-04-26 13:28:47 +00:00
mfranz
6ebad8c31e ... commented out, I said! 2008-04-20 19:03:41 +00:00
mfranz
367d68ca9b - update comment: the '*'-key is no longer hard-coded
- add commented out key log command, which helps with finding keycodes
2008-04-20 19:03:16 +00:00
mfranz
217cbcae34 add mod-up action to magneto keys, and ignore that in the controls wrapper;
This allows to implement car-like combined magneto/starter switches.
2008-02-23 18:18:55 +00:00
martin
33277e0730 Stuart Buchanan:
1) The chat menu will now select the runway closest to the aircraft
   when the aircraft is on the ground, or very low (< 100ft). This
   handles the case where the user has selected a runway explicitly,
   e.g. 01R for KSFO take-offs for noise abatement. My thanks for
   AnMaster for pointing this out on IRC. Note that above 100 ft, the
   wind-appropriate runway will still be used.
2) Change to keyboard description for the - key, as pointed out by
   Melchior.
2007-12-11 15:20:00 +00:00
mfranz
ee6dcb6d33 fix broken indentation 2007-12-08 19:30:20 +00:00
vmmeazza
4ee3367452 Stuart Buchanan:
Add chat menu
2007-12-08 19:01:03 +00:00
mfranz
f4b02d7622 fix /-key desc 2007-11-26 17:55:28 +00:00
mfranz
73c0285ef9 - remove property browser binding from the <SPACE> key
- rename prop-key-handler.nas to prop_key_handler.nas  (the hyphens were
  intentional, exactly to *make* using it as namespace less inviting,
  but times change ...)
- add property browser binding to the '/'-key for when the property key handler
  is turned off (/sim/input/property-key-handler=0). If it's on, use /: or
  /<property>: to open the browser.
- run keyboard event listener only when property key handler is active

I hope that the '/' key can keep this binding even after a keyboard review.
The '/' is just the most natural key for dealing with properties, and it's
far less prominent on non-US-keyboards (e.g. Shift-7 on German keyboards),
so it's not really very well suited for important aircraft functions, anyway.
But I don't insist. :-)
2007-11-26 16:12:37 +00:00
david
dae68bec13 Revert to previous version -- toggle lighting is not bound for now. 2007-11-13 14:42:44 +00:00
david
daf6e12bc9 Reassign tail-wheel locking from 'l' to 'L' (previously unused), and
use 'l' to toggle lighting.
2007-11-10 01:30:04 +00:00
mfranz
0561fc2e1f use "var" keyword to make "local" variables really local 2007-08-01 08:20:21 +00:00
mfranz
64936b6297 remove forgotten garbage in the s-key def 2007-07-19 21:31:24 +00:00
mfranz
e87a969fdc - move "open property browser" back to SPACE (for now any modifier combination
other than Shift-SPACE or SPACE alone). The move to Shift-Enter was bad,
  as all Return combinations are filtered by open dialogs with <default>
  set. SPACE remains reserved for communication functions (PTT), though, and
  the property browser will be moved away if more combinations are needed for it.
- some comments in the file head
2007-07-19 10:49:34 +00:00
mfranz
05b3db2d31 minor cleanup 2007-07-13 16:52:39 +00:00
mfranz
3c08f34027 - move "swap panels" from s-key to S-key
- move "fire starter" from SPACE-key to s-key
- move "open property browser" from Shift-SPACE to Shift-Enter (Shift-Return)
- implement PTT on SPACE/Shift-SPACE  (with the other six SPACE/modifier
  combinations unused, apart from a popup)
- add controls.ptt(v) wrapper function (v can be 1 or 2 for on, and 0 for off)

Easter-Egg:
- pressing the t-key for at least one second resets the warp delta.
  This is an experimental feature that most people won't notice. It's meant
  for investigating if suchlike "unorthodox" key use is acceptable. While
  modifier-keys are the norm on computer keyboards, modifier-times aren't,
  although we are used to them from other devices, such as alarm clocks etc.)
  May later get removed without warning.
2007-07-13 13:46:09 +00:00
andy
30502189d8 The screen-capture command no longer pops up a dialog, so toss up a tip
from within the F3 keybaord handler instead.
2007-06-07 16:59:07 +00:00
mfranz
1a48bfb840 p: only set /sim/freeze/replay-state to 0 if it wasn't already (more useful
for listeners)
2007-05-05 11:09:48 +00:00
mfranz
25e61dad0d AJ MacLEOD: replace obsolete and broken throttle bindings by controls
wrapper call

mf: I didn't find a trace of that /autopilot/controls-overrides/ property
    in the fgfs source code and most of the data package. There are regular
    complaints in the IRC channel about numpad keys 9 & 3 not working.
2007-03-23 20:03:28 +00:00
mfranz
2987f9660f let Shift-Space open property browser 2007-02-24 10:16:26 +00:00
mfranz
4453b8c742 adapt I-key description 2006-08-21 08:43:36 +00:00
mfranz
c8abca597e use aircraft.HUD manager methods to control the HUD. Key bindings remain
the same, with one exception: I (=Shift-i) doesn't only switch to the
alternative old HUD, but toggles that and the new HUD. Eventually
we may want to re-organize the HUD key bindings. Maybe after the old
HUD has been removed?
2006-08-21 08:40:15 +00:00
mfranz
e0244684c9 put prop pitch on n/N 2006-08-09 13:56:48 +00:00
mfranz
dfd3fc3212 - update hud paths
- check for negative index
2006-06-08 17:18:03 +00:00
mfranz
d39e681ef5 set HUD properties explicitly; the commands weren't very flexible and will
die
2006-06-07 17:58:55 +00:00
mfranz
c93bda7b22 terrain-follow -> agl-hold (to match generic AP and AP dialog) 2006-04-08 16:21:47 +00:00
mfranz
7e81d93f28 use wrappers for brakes/parking brake
(js files are to be converted)
2006-03-01 17:04:20 +00:00
mfranz
efc1577118 '+': change description & function name (repeate last ATC/instructor msg) 2006-02-24 11:06:06 +00:00
mfranz
dc74e71157 use more sophisticated screen.atc_repeat() function to let ATC repeat
his/her last message
2006-02-11 12:07:06 +00:00
mfranz
6859951713 baby, one more time! 2006-02-10 19:08:10 +00:00
mfranz
e21dbdbef1 - move "Toggle FDM data logging" from Shift-F10 to Shift-F9
- let Shift-F10 cycle through GUI styles; F10 is already about GUI stuff
  (enable/disable menu), so this is the most obvious key
2005-07-13 11:14:07 +00:00
mfranz
c20d609bfb now that the <repeatable> property actually works, we have to set it
where it is desirable (it defaults to false); the <key>'s <repeatable>
setting is also used for the <mod-shift> branch, so we have to set it
as soon as one branch needs it.
2005-06-27 07:16:09 +00:00
mfranz
beb96181c5 - no <desc> in <bindings>; they are either at <key> level, or at
<mod-up>, <mod-shift>, ...
- remove doubles; cosmetics
2005-06-23 14:01:58 +00:00
mfranz
17166921c0 - rename controls.stepFlaps() to controls.flapsDown(), because:
- to support "old-style" gear/flap control (operation as long as button
  pressed/lever pushed -> b29/hurricane), let bindings not only report
  up/down, but up (-1), stop (0), down (1).
- let controls.flapsDown() ignore "stop" so as to remain compatible with
  prior behavior
- adapt all joysticks/aircraft (sigh)
- some minor cosmetics in joystick configs, such as indentation fixes
2005-06-22 13:08:01 +00:00
mfranz
7cc31829a3 add one level of indirection for gear down/up and use that in all bindings,
so that aircraft with special requirements (hurricane) can simply redefine
controls.gearDown() without breaking all joystick setups
2005-06-16 07:36:54 +00:00
mfranz
1b035acb09 - remove W ("3dfx fullscreen-toggle")
- move m/M ("increase/decrease warp) to w/W
- make m/M "mixture richer/leaner"
2005-04-20 12:12:58 +00:00
ehofman
6e94786ea5 Melchior FRANZ:
Implement simple help system with global and aircraft specific dialogs:

The gui.nas changes have been discussed with Andy. All ac have a help dialog,
but some are empty. (This wouldn't have been necessary, as the system falls
back to the "Common Aircraft Keys" if an aircraft has no help defined, but an
empty dialog is less confusing and encourages to be filled with interesting
information.  :-)   I scanned all aircraft files for interesting performance
data and added some to the dialogs (stall speed, etc.) The Concorde and the
p51d have (over?)complete dialogs and can serve as examples. The format is
documented in $FG_ROOT/Nasa/gui.nas.

There is also a couple of other, minor fixes.

The following files have ugly MSDOS line endings:

  $FG_ROOT/Aircraft/Hunter/hunter{-2tanks,}-set.xml
  $FG_ROOT/Aircraft/A380/A380-set.xml


The Concorde-jsbsim.nas file is a useless copy of the real */nas file, which is
in Nasal/. I'was debugging the Concorde and wondered why changes to this file
had no effect ...
(Fixed Concorde in the help-ac.diff patch: don't use "interpol" keyword as
variable.)
2005-04-19 13:38:44 +00:00
curt
c65e978ce4 Change corresponding to change in replay system code. 2005-01-05 05:46:59 +00:00
ehofman
1571689ab2 Remove carrier specific keyboard bindings, they are now located in Input/Keyboard/carrier-bindings.xml 2004-12-27 13:16:35 +00:00
ehofman
297200aeca Mathias Fröhlich:
Attached is a patch against the data directory which establishes the
keybindings I use for the carrier operations.
The map.pdf must be regenerated.
2004-11-26 10:26:18 +00:00
ehofman
f6dc47513b Fix a typo. 2004-09-25 11:20:36 +00:00
david
adcdeab287 Remove fragile alias references in bindings and replace with property
references.
2004-06-24 14:45:48 +00:00
ehofman
ed6f6640af Lee Elliot:
I'd like to suggest that the spoiler settings are set in the same way as the
flaps are now done i.e. via Nasal, so that specific spoiler settings can also
be defined in the aircraft set file.

It was only when I was about to change the keyboard bindings for the slats
control that I remembered that there wasn't already a mapping for them in
keyboard.xml.  I've _not_ added a mapping for slats as this is a bit of a hot
topic atm but as I had already added a Nasal func for the slats in
controls.nas I've left that in there.  It's a trivial bit of code but I don't
know if leaving it in there is a good idea as it's code that shouldn't ever
be called until there's a corresponding keyboard mapping.
2004-06-01 08:13:12 +00:00
andy
eb5124840b Keybindings for the HUD, which used to be hardcoded in input.cxx.
Note that they're still very inflexible; I just mapped C++ functions
to new commands.
2004-04-05 19:39:47 +00:00
andy
15401619e5 There used to be a hard-coded F6 binding in input.cxx. Replace it
with a tiny bit of Nasal.
2004-04-05 18:55:33 +00:00
jimw
88d1598ab9 Fix virtual cockpit toggle binding ("c"). Switches between 2D/3D mode on the
fly.
2004-03-24 16:07:09 +00:00