1
0
Fork 0
Commit graph

24 commits

Author SHA1 Message Date
James Turner
064db3488e Work to support spring-loaded view mouse.
Add an (unused) fourth mouse mode, and make the right-click behaviour conditional on a control property, defaulted to true to keep existing behaviour.
2013-02-17 11:55:06 +00:00
torsten
6445dc6cce typo, double slash in property name. 2009-11-16 20:51:38 +00:00
torsten
77a77ba6ab Add the autovisibility functionality for the menubar.
If /sim/menubar/autovisibility/enabled is true, show the menubar when the mouse hits the upper edge of the window and hide the menubar on click outside a pui element.
2009-11-16 20:40:20 +00:00
stuart
7ddf27517f Updates to scroll-wheel mouse bindings for consistency:
1) Remove trim binding from normal mode (causes problems when used with radio tuning)
2) Replace trim binding in view mode with FoV binding.
2009-03-13 21:45:34 +00:00
mfranz
3132b5c962 Fix mouse MMB+LMB: this reset to view[0] parameters independent of the
current view, so it was only usable in cockpit view, and messed up every
other view.
2007-08-01 21:10:04 +00:00
mfranz
c587c9dd3a In mouse view mode <=> one could already move the view left/right/up/down
when dragging the mouse with middle mouse button (MMB) pressed (reset
with MMB+LMB):

Add support for forward/backward moving (MMB+KbdCtrl). With this one can,
for example, read what's written on the backside of the cup of coffee
on top of the screen in the E3B's operator room, or walk around between
the passenger seats in the fokker70 searching for the toilet.  :-)
2007-02-09 13:31:04 +00:00
mfranz
5f8100dc41 Vassilii Khachaturov:
"If one does current view translation (dragging with the middle button in
the 2nd (view adjustment) mode), then, upon the left click, only the pitch
offsets are recentered, and not the x/y/z offsets." ... "jumps back only
when the mid-button is pressed on the left-click."
2005-10-23 16:00:06 +00:00
ehofman
09be8cb579 Melchior FRANZ:
I hope Roy doesn't mind that I'm submitting his patch again. I only removed the
limits, because they didn't work in several aircraft. This allows you to do
unrealistic things like sticking your head out of a 747 cockpit, or "extreme"
things like leaving the aircraft, but that's no worse than being able to turn
the head several times in a row as in "The Exorcist".

* Roy Vegard Ovesen:
I've attached a patch to mice.xml that lets you move the camera/viewport with
the middle mouse button pressed in mouse view mode. Useful for looking at the
compass head on.
2005-01-28 15:17:30 +00:00
david
adcdeab287 Remove fragile alias references in bindings and replace with property
references.
2004-06-24 14:45:48 +00:00
andy
b2909de010 New Nasal code, with lots of input binding handlers in controls.nas.
Move the "tip popup" code from view.nas to a new gui.nas module, and
  make it generically useful.
Wire up flap steppings for the 747 as an example of per-aircraft
  flaps.
Realtime-based property slewing, to eliminate dependence of trim and
  view direction rates on frame rate.
2003-12-22 20:05:18 +00:00
ehofman
759d86d947 Updates to refelect the controls update of FlightGear. It could be there are a few unupdated controls left. To simplify the transisition there is a file called README.properties in the docs-mini directory of FlightGear that explains the new controls layout. 2003-04-01 12:41:12 +00:00
curt
de1c84c8c0 Jim Wilson:
There are a number of little changes.  Tested with current cvs as of 20:30EST
04Feb.  Actually been running since the beginning of January with these
patches.  All changes work without crashing with the current base package cvs,
but there are some visual problems with the views (other than pilot view)
without changes to the base package.

As soon as you can build test and commit I can add in those base package
updates that will make it all work nicely.  I will also go through all the 3D
Aircraft configs to make sure the change in the "pitch-offset" for cockpit
views (see below) are made to maintain current behavior.

Here are the files (changes listed below):
http://www.spiderbark.com/fgfs/viewerupdate.diffs.gz
http://www.spiderbark.com/fgfs/viewerupdate.tar.gz
2003-02-06 19:46:48 +00:00
david
1a8383b3dc Added user-definable positions for front, left, back, etc. rather than
always forcing to the same angle.  These changes should migrate into
the joystick config files and the aircraft *-set.xml files eventually.
2002-09-14 16:22:39 +00:00
david
e8f235d589 Make the mouse wheel less sensitive for elevator trim. 2002-07-04 15:45:08 +00:00
david
8c01edc539 Assign buttons 3 and 4 to elevator trim.
Under X11, at least, these will map to the mouse wheel if it's
enabled.
2002-05-02 14:08:26 +00:00
jimw
a16a46af5f In panning fixed left button to return both pitch and heading offset to zero 2002-04-19 01:12:34 +00:00
curt
f468d9362d Jim Wilson:
These are the updates for the View manager properties.  Removed the last of
items (within the viewer/viewmgr) hard coded to view number.  Added support
for per view configuration of ground level nearplane value.  Tower views look
very nice with little or no z-buffer problem in the models.  Pilot offset
dialog can be used to move eye in all views.
2002-04-18 14:52:32 +00:00
david
ea264c688c Add explicit types for all non-string properties. This will help a
lot, since otherwise a property that is never set or tied by
FlightGear itself will always be kept as a string and converted on
each access.  That's why fgGetBool and friends could take up a lot of
processor time sometimes.
2002-04-09 10:45:47 +00:00
david
16448bb2ef Added conditional bindings for throttle and rudder when mouse is
pressed.
2002-03-27 22:51:13 +00:00
david
f52a4ccf58 More cleanups. Removed the pui-* commands, and added a pass-through
property to indicate when mouse events should be offset to PUI and the
panel first.
2002-03-27 00:54:34 +00:00
david
20ab2f4779 Added bindings for elevator and ailerons in mode 1, as in current
mouse support.
2002-03-26 13:17:32 +00:00
david
2a7cd47fd5 XML format changes, so that bindings are always mode-specific. Added
support for panning the view, as in the existing mouse view mode.
2002-03-26 12:49:14 +00:00
david
fd3771f264 Added configuration for different modes and cursors. The XML format
is subject to change, and this file is still used only when FlightGear
is configured --with-new-mouse.
2002-03-25 11:59:26 +00:00
david
061cbf9841 Initial mouse configuration support. This will be ignored unless you
configure --with-new-mouse, and there's not much there yet anyway.
2002-03-23 22:30:39 +00:00