MorphOS Developer
Posts: 1520 from 2003/2/24
From: Finland
Quote:
When I specify RAWKEY and VANILLAKEY events in the event handler node, string input stops working.
Oh... you shouldnt use VANILLAKEY in MUI. MUI classes are relying on IDCMP_RAWKEY and when you add IDCMP_VANILLAKEY to IDCMP flags some classes stop working. This is also case in MUI 3 with other text input classes.
So you should use RAWKEY only and using MapRawKey() get vanilla key code. In MorphOS 2/MUI 4 you can also get unicode so you dont have to do conversion anymore:
switch (IntuiMessage->Class)
{
case IDCMP_RAWKEY:
ULONG ucs4_keycode = getv(IntuiMessage, IMSGA_UCS4)
break;
}
1 + 1 = 3 with very large values of 1