Thomas Geymayer
d9881aecf8
Allow Canvas placed on 3D objects receiving mouse events.
...
- Add option 'capture-events' to canvas aircraft and scenery
placements to allow events being forwarded to the respective
canvas.
- Clean up and restructure parts of the mouse event/picking
handling to support forwarding events to canvasses.
2013-05-09 21:38:40 +02:00
James Turner
6bd8bbc25e
Limit hover-picks to once per frame.
...
Hopefully fixes the observed issues on Linux when spamming
mouse-moves over a large pickable, but only testing will say for sure.
2013-03-28 17:52:08 +00:00
Anders Gidenstam
46eadabf3a
Added support for tracking mouse movements with shift and control+shift pressed.
2013-03-13 21:20:17 +01:00
James Turner
4786923838
Tweak hover logic.
...
Fixes tooltips vanishing on mouse-move.
2013-03-11 17:13:03 +00:00
James Turner
67a0acb64a
Live cursor updating during pick-drags.
...
This gives nice cursors when hovering and dragging slider and knob-animations, and the cursor is set correctly on mouse-up after the drag too. Makes directional knobs/sliders much easier to understand.
2013-03-10 12:06:20 +00:00
James Turner
0971ed1f2c
Make tooltips independent of cursor auto-hide.
2013-03-10 10:17:27 +00:00
James Turner
b5a6812c95
Clean up mouse-input property handling.
...
Use a listener to avoid reading state each event/update. Support setting some values on the SGKnobAnimation configure global behaviour.
2013-03-08 16:34:21 +00:00
James Turner
30fcfd219e
Pass key-mod state into pick-callbacks.
...
Allow pick-callbacks to get the current mod-state at all times. (Required for matching SG change)
2013-03-07 18:41:38 +00:00
James Turner
12bcea2861
Make Ctrl+axis bindings explicit (and work).
...
Thanks to Clement/F-JJTH for the fix.
2013-03-06 14:24:29 +00:00
James Turner
d5c382a780
Fix updating of mouse position props.
...
Some cockpits rely on mouse position props being updated even when using a dragged pick-callback. Thanks to Clement for noticing. Re-structured so however we process the mouse (PUI, pick-callback, normal motion), we always update the props.
2013-03-05 14:31:58 +00:00
James Turner
50c70035b3
More explicit check for cursor feedback.
2013-03-05 08:40:17 +00:00
James Turner
f2c267f5d7
MouseInput changes to support hover.
...
This adds the framework for platform cursor implementations; Windows and X11 to be done.
It also extend the mouse-input code to generate hover events suitable for driving tooltips.
Note there should be no visible functionality change from this commit, since everything
is inactive until fgdata changes are made.
2013-03-04 23:35:30 +00:00
Thomas Geymayer
6c10f99573
Make compiling of all utils/tools optional
2013-02-12 17:38:46 +01:00
James Turner
7b663cd7f7
Split huge NasalSys header apart.
2013-02-09 15:33:05 +00:00
Christian Schmitt
2013f7149d
Some headers missing... ;)
2013-02-07 19:00:54 +01:00
James Turner
1a5b968d7e
Update for tweaked SGPickCallback API.
...
(Requires corresponding SimGear commit)
2013-02-03 16:34:36 +00:00
James Turner
31995420d3
Guard libudev include with extern "C".
2013-01-30 20:49:50 +00:00
James Turner
11f15a9b36
Joystick/dialog caches, commit the transactions.
2013-01-25 09:30:31 +01:00
James Turner
37900e22a8
Wrap dialog and joystick stat-cache in a transaction.
...
Should improve startup times when the cache is rebuilt.
2013-01-24 09:27:09 +01:00
James Turner
e9ecf4eb52
Bug #923 : repeatable flag set on input reload.
...
Clean-up how axes and button bindings are destroyed are re-built on reinit of the FGJoystickInput subsystem, so we get new, cleanly initialised items each time.
2012-12-29 12:16:51 +00:00
ThorstenB
076bbb8487
Fix some compiler warnings.
...
Unused vars, loss of precision, bool type conversions.
2012-10-13 17:59:47 +02:00
James Turner
ae6218ff10
Restore named JS/input configs (overrides)
...
Thanks to jano for pointing out I'd broken this feature!
2012-09-25 14:20:18 +01:00
ThorstenB
293d6b3565
Fix compilation with enabled EVENT_INPUT
...
Need to move the definition to the toplevel cmake file, since sources
are no longer compiled on directory level (individual libs per dir).
2012-09-22 14:23:15 +02:00
James Turner
6e7ac46751
Cached joystick config loading.
...
Avoid parsing all the joystick configs every launch.
2012-09-21 10:17:16 +01:00
Stuart Buchanan
5c78970663
Stop the property tree from keeping a shadow of the deleted input properties, as it can mean that the array of bindings ends up with some incorrect name tags if the set of joystick config files changes and a given js-named entry shifts in the array. This can then result in incorrect bindings being selected.
2012-08-25 22:23:55 +01:00
Stuart Buchanan
cce186a57c
Add properties for raw axis and button values, for use
...
in joystick configuration function. Also rationalize references to
/sim/fg-home into a global property.
2012-08-23 21:52:30 +01:00
ThorstenB
e794bb8e25
Fix Linux compile / math dependency
...
wasn't redundant in one place
2012-05-05 12:16:20 +02:00
Frederic Bouvier
75fc136931
Remove redundant inclusion of math/SGMath.hxx
2012-05-05 11:20:04 +02:00
ThorstenB
e59fabaf82
Clean-up some SGMath dependencies.
2012-05-05 00:56:29 +02:00
ThorstenB
89b41395d8
Move viewer-related sources to separate folder.
...
Simple source directory clean-up, so "Main" folder contains fewer stuff
and the list of files in the editors a lot shorter.
2012-04-25 23:28:00 +02:00
ThorstenB
5f1435b4fd
Avoid "using..." in header files.
2012-04-05 21:02:09 +02:00
James Turner
8c187164fe
Work on making 2D panels act like standard scene-graph elements for picking and drawing.
...
(This includes 2.5D panels in the 3D scene)
2012-03-16 17:22:18 +00:00
ThorstenB
6113981b39
#702 : Misspelled "devices" property node.
...
(Typo from my commit earlier this week)
2012-03-08 08:58:44 +01:00
Torsten Dreyer
644bb8c4f4
Spring-cleaning: some minor optimization
...
- initialize uninitialized properties
- use prefix instead of postfix increments
- reduce visibility of variables
- use empty() instead of size() == 0 for vector and string
- pass string by reference, not by value
2012-03-06 22:28:18 +01:00
ThorstenB
0abf252ec8
Use tiedPropertyLists instead of manually matched tie/untie calls.
...
Ensures we don't forget to untie some individual properties.
2012-03-04 15:30:08 +01:00
James Turner
a5153615e6
Mac-specific fgjs / event-input fixes from Tatsuhiro.
2012-02-11 17:33:02 +00:00
ThorstenB
64fda03bd6
#605 : Reduce warning level for unsupported keys.
2012-01-18 21:41:55 +01:00
ThorstenB
d47342a5a4
Add --log-class option, improve logging classes.
...
Replace SG_GENERAL by more specific log classes in many places.
Allow "," to separate logging classes (using "|" is odd on the
command-line).
Also add new option to make logging more useful for developers.
You can use:
--log-level=debug --log-class=environment
to only get environment debug messages, or
--log-level=debug --log-class=sound,ai
to only get debug messages related to the sound or AI subsystem.
2011-12-11 14:06:17 +01:00
ThorstenB
4c17cee5fb
Lower log level for event input/udev messages.
2011-12-09 17:20:28 +01:00
ThorstenB
9933a7cb4a
cmake: add support for Torsten's UDev EventInput
...
(Hopefully meeting Torsten's quality expectations)
2011-12-04 14:37:25 +01:00
Torsten Dreyer
ded106fe31
event input for Linux: substitude dbus+hal by udev
2011-12-03 22:59:20 +01:00
Torsten Dreyer
2b68bebb5d
namespace std fixes
2011-11-14 15:33:02 +01:00
Frederic Bouvier
f1d0ac52a6
Fix MSVC9 build
2011-11-14 08:38:58 +01:00
James Turner
70b4f38ebc
Goodbye automake.
2011-11-01 11:15:53 +00:00
James Turner
b1b4b7ecf4
Fix (nearly) all the std:: namespace violations in headers, in preparation for fixing SGsmplstat.hxx to *not* do a 'using namespace std'.
2011-10-17 17:41:59 +01:00
Torsten Dreyer
fcf0371777
fix cmake conditional for event-input
2011-09-21 19:22:32 +02:00
James Turner
7dd8f00c42
Enable event-input for joysticks by default on Mac + Linux, in Cmake.
2011-09-21 17:13:13 +01:00
James Turner
2de3872d66
In joystick configurations, fall back to <unix> if no <mac> entry was provided, since the number is frequently identical.
2011-09-15 09:54:00 +01:00
Mathias Froehlich
549c5eccb9
cmake: Factor out common simgear dependency libs.
...
Factor out and use this core simgear depenency
library cmake variable.
2011-09-11 11:22:10 +02:00
James Turner
a5a8090d52
Cmake: Split simgear libraries into core and scene (only scene uses OSG). Fix linkage issues, and make helper binaries (yasim, terrasync) link against less stuff.
2011-09-08 13:59:40 +01:00