Hi, On Mon, Jun 18, 2007 at 10:32:00PM +0200, Melchior FRANZ wrote: > * Holger Wirtz -- Monday 18 June 2007: > > I tried the following but I never get the value 2: > > > <binding> > > <command>property-assign</command> > > <property>/instrumentation/comm/ptt</property> > > <value type="int">0</value> > > </binding> > > <mod-up> > > <binding> > > <command>property-assign</command> > > <property>/instrumentation/comm/ptt</property> > > <value type="int">2</value> > > </binding> > > </mod-up> > > You mixed up the normal (key-press) and the <mod-up> binding > (key-release). But even then you'd get a 2, whenever the key > is released.
Ok, I see... that's not intelligent. But other tests also won't work: <key n="121"> <name>y</name> <desc>Radio PTT</desc> <binding> <command>property-assign</command> <property>/instrumentation/comm/ptt</property> <value type="int">1</value> </binding> <mod-up> <binding> <command>property-assign</command> <property>/instrumentation/comm/ptt</property> <value type="int">0</value> </binding> </mod-up> </key> <key n="89"> <name>Y</name> <desc>NAV1 audio listen</desc> <binding> <command>property-assign</command> <property>/instrumentation/comm/ptt</property> <value type="int">2</value> </binding> <mod-up> <binding> <command>property-assign</command> <property>/instrumentation/comm/ptt</property> <value type="int">0</value> </binding> </mod-up> </key> I also tried to put a <mod-shift> into the definition for n=121 (y) because I thaught that I get 1 with "y", 2 with "Y" and "0" when the key is released... Does anyone know how I can implement this??? Regards, Holger -- ##### #### ## ## Holger Wirtz Phone : (+49 30) 884299-40 ## ## ## ### ## DFN-Verein Fax : (+49 30) 884299-70 ## ## #### ###### Stresemannstr. 78 E-Mail: [EMAIL PROTECTED] ## ## ## ## ### 10963 Berlin ##### ## ## ## GERMANY WWW : http://www.dfn.de GPG-Fingerprint: ABFA 1F51 DD8D 503C 85DC 0C51 E961 79E2 6685 9BCF ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel