[Bf-committers] I've made a custom hotkey system for Blender!

Alexander Ewering blender at instinctive.de
Mon Dec 6 07:13:24 CET 2004


On Sun, 5 Dec 2004, joeedh wrote:

> IF THIS IS NOT ALREADY BEING WORKED ON (don't you just hate all caps):
>
> I added a char keybinding[24][3] member to the user def struct.  For each 
> member of the array, [0] is the key code, [1] is NULL (because the UI expects 
> null-terminated strings) and [2] is the qualifyer  for it (such as shift, 
> alt, whatever, based on the values in BKE_global.h).

I'm not sure if you know what you're doing ;)

For example, G.qual is a short. How do you plan to represent all possible
values should it once get extended beyond bit 5? And did you care for
endianness issues while converting between char and short? ;-)

And there cannot be more than 24 custom keybindings?


| alexander ewering              instinctive mediaworks
| ae[@]instinctive[.]de   http://www[.]instinctive[.]de


More information about the Bf-committers mailing list