-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 16.10.2010 18:21, Nathan Letwory wrote:
> Revision: 32524
>           
> http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=32524
> Author:   jesterking
> Date:     2010-10-16 17:21:55 +0200 (Sat, 16 Oct 2010)
> 
> Log Message:
> -----------
> Fix AltGr problem on Windows
> 
<snip>
> +     for(m_hasAltGr = false, i = 32; i < 256; ++i) {
> +             s = VkKeyScanEx((char)i, keylayout);
> +             // s == -1 means no key that translates passed char code
> +             // high byte contains shift state. bit 2 ctrl pressed, bit 4 
> alt pressed
> +             // if both are pressed, we have AltGr keycombo on keylayout
> +             if(s!=-1 && (s & 0x600) == 0x600) {
> +                     m_hasAltGr = true;
> +                     break;
> +             }
> +     }

I completely forgot to mention that most of the information was gleaned
from the sources of the AutoHotKey project. Their sources is *very* well
commented, with many (long-winding) comments on reason why some things
work as do and are implemented as they are. Anyway, kudos to the coders
of AutHotKey!

/Nathan

- -- 
Nathan Letwory
Letwory Interactive
http://www.letworyinteractive.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJMucayAAoJEKtfN7KsE0TtlnEIAJqoPlRV3mQ6OBPD6kyEOi6x
9JKtYZAaQorFsskd6STnXg18TYM7a7u9oGWnQK9cm5BQi7uCIQlaAfY1QvUQ3m31
LEQ+oVjKqnmuznhO5iJWqwMMfjDiZSNfZldBccbwQE4D4Sz24z0LWeeM/QWkZfMW
vCcweJ8DJriJpCBX/2vL1zxsGd4dNSWus8bNlD5DhrFIQdnOK6ecQsUgJvlZzfQo
KjPV1RlZrigBmNJSm8XIRofsVL6flSem9bJCOQCaaVrpgCPjNek8NxCZvWuhVlRw
gCc56KKmr3jhQqUSTdHxHeRsVBKp+hnhHM1EkXmESOKZCITLs0QdhYVz3odDum4=
=l7Se
-----END PGP SIGNATURE-----
_______________________________________________
Bf-committers mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-committers

Reply via email to