Files
simgear/simgear
Richard Harrison 2a60e5e338 Added touch animation.
Designed for 2d objects, such as a canvas placements, this permits the receipt of touch (mouse click) events to enable the simulation of avionics with a touchscreen.

The coordinates are passed in as arguments to the action; these can be accessed with Nasal via the cmdarg() method.

example:

    <animation>
         <type>touch</type>
         <visible>true</visible>
         <object-name>VSDImage</object-name>
         <action>
             <touch>0</touch>
             <repeatable>false</repeatable>
             <binding>
                 <command>nasal</command>
                 <script>print("touch input
(",cmdarg().getNode("x").getValue(),",",cmdarg().getNode("y").getValue())</script>
             </binding>
         </action>
     </animation>
2017-10-29 01:04:36 +02:00
..
2017-08-12 22:34:52 +02:00
2016-12-07 11:03:49 +01:00
2017-07-28 12:05:35 +01:00
2017-10-29 01:04:36 +02:00
2014-01-27 09:19:11 +00:00
2017-03-17 23:25:25 +00:00