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

Jean-Luc Peuriere jlp at nerim.net
Mon Dec 6 07:50:08 CET 2004


Le 6 déc. 04, à 07:08, joeedh a écrit :

> 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 did this for simpicity, and because I already have two new structs 
> in my Blender DNA, one new Library block type, and I don't wish to 
> further pollute the DNA code with even more structs.
>
So you add another level of indirection, between GHOST and blender 
event system ?  i'm not sure it's wise

event system need an overhaul and will be reworked (i'm doing some work 
on the lower GHOST one too), is the timing really good ?

-- 
Jean-Luc



More information about the Bf-committers mailing list