Touch animation

From FlightGear wiki
(Redirected from Touch Animation)
Jump to navigation Jump to search
This article is a stub. You can help the wiki by expanding it.

Richard implemented a SGTouchAnimation using arguments (no Emesary) and it works great. [1]

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 [2].


var values = cmdarg().getValues();
print("touch input:");
foreach(var field; keys(values)) { 
 debug.dump( field, "=>", values[field] );



Related content