On Wed, Jun 20, 2007 at 01:36:17PM +0200, Melchior FRANZ wrote:
> * 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. :-)
Yes - that was my thought, too, as I stopped writing and exchanged "try
to get it into cvs" to "try to build a patch for" :-)
This maybe a very simple modification but with bigger side action. So
I think the only way would be to present a really neat realtime radio
solution that is worth to make the changes (I hope!).
> > 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.
Ok, thanks! I will try this for the release of my middleware...
Regards, Holger
>
>
> <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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/flightgear-devel
--
##### #### ## ## 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel