man, 2003-02-10 kl. 23:21 skrev Lionel Ulmer:
Hi all,
With this patch, Tribes1 now likes our DInput driver.
Lionel (who waits for his beer when he will visit Sweden :-) )
Changelog: Implement EnumObjects for the keyboard device
strcpy(ddoi.tszName, "a"); /* This should be better handled :-/ */
Perhaps the right way to do this would be something like
GetKeyNameTextA(((i & 0x7f) << 16) | ((i & 0x80) << 17), ddoi.tszName, sizeof(ddoi.tszName));
Perhaps the right way to do this would be something like
GetKeyNameTextA(((i & 0x7f) << 16) | ((i & 0x80) << 17), ddoi.tszName, sizeof(ddoi.tszName));
This works fine... Except that it generates a lot of warnings like that :
fixme:keyboard:X11DRV_GetKeyNameText (01750000,0x4067fee8,260): unsupported key, vkey=0000, ansi=0000
So I wonder if I will submit the patch or not.. Is there a way to 'enumerate' the keys present on the keyboard ?
Lionel