[Bf-committers] I've made a custom hotkey system for Blender!
joeedh
joeeagar at prodigy.net
Mon Dec 6 08:04:41 CET 2004
Jean-Luc Peuriere wrote:
>
> 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
Ghost handlers low-level events. Blender dictates what those events do.
joeedh
More information about the Bf-committers
mailing list