* Holger Wirtz -- Wednesday 20 June 2007:
> On Tue, Jun 19, 2007 at 02:43:20PM +0200, Melchior FRANZ wrote:
> > I suggest to move the "swap panels" function to Shift-s (now s),
> > to move the starter to 's' (now SPACE), and to use the SPACE key
> > for PTT (or trigger :-)
> 
> Yes this would be very nice. I think I will try to build a patch for 
> keyboards.xml after presenting my C Version of the realtime radio in the
> next weeks.

A patch is less of a problem. The agreement of other developers
might be, though.  :-)



> BTW: What's the keycode for SHIFT-SPACE or CTRL-SPCAE ?

There's only one keycode for Shift, and it's 32. You can
get the shift function with <mod-shift>, and Ctrl and Alt
via /devices/status/keyboard/{ctrl,alt}. Try the following.
It will output a line with all three modifier keys, like

 SC- space       ... for Shfit+Ctrl+Space
 --A space       ... for Alt-Space   etc.

You can see that for the S we need a separate <mod-shift>.
The /devices/status/keyboard/shift property doesn't work here.


 <key n="32">
   <name>SPACE</name>
   <binding>
     <command>nasal</command>
     <script>
       var c = getprop("/devices/status/keyboard/ctrl") ? "C" : "-";
       var a = getprop("/devices/status/keyboard/alt") ? "A" : "-";
       print("-", c, a, " space");
     </script>
   </binding>
   <mod-shift>
     <binding>
       <command>nasal</command>
       <script>
         var c = getprop("/devices/status/keyboard/ctrl") ? "C" : "-";
         var a = getprop("/devices/status/keyboard/alt") ? "A" : "-";
         print("S", c, a, " space");
       </script>
     </binding>
   </mod-shift>
 </key>

m.

-------------------------------------------------------------------------
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

Reply via email to