No, the clever programmer Farkas Máté did, but he's from Hungary and doesn't speak much English it seems. Haven't heard from him in a while, sadly.
Caps State, however, is really from MSKLC. Add together a 1 if the 2nd level is the shifted state of the 1st (true for letters but not for number keys for instance), and 4 similarly for the AltGr state. So the CapsState number is either 0, 1, 4 or 5. Get it?
(In case you wonder about the missing second bit: 2 refers to the Ctrl key shift level. As you know, the Ctrl key isn't actually used for shift states so it stays unmapped for the most part. But there's actually one key that's mapped this way: LeftBracket+Ctrl sends an Escape in some layouts, iirc.)
Last edited by DreymaR (30-Sep-2015 14:15:35)