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

joeedh joeeagar at prodigy.net
Mon Dec 6 08:27:40 CET 2004


Alexander Ewering wrote:

> On Sun, 5 Dec 2004, joeedh wrote:
>
>> What are you freakin talking about.  Blender never has L_SHIFTKEY set 
>> without R_SHIFTKEY.  I've tested it.  So why have both?  The UI 
>> toggle can set 1 bit, or the first bit  of two bytes in a short, but 
>> the docs don't mention anything about setting two bits right next to 
>> each other.
>
>
> Oops, sorry then. I thought you didn't understand why (G.qual & 
> LR_SHIFTKEY)
> is the same as (G.qual & (L_SHIFTKEY|R_SHIFTKEY)) if LR_SHIFTKEY is
> #defined to be L_SHIFTKEY + R_SHIFTKEY.
>
> That's a misunderstanding then.
>
> I still don't understand why you want to store a short in a char 
> though ;)

Because said short never uses it's second byte. ;)

joeedh


More information about the Bf-committers mailing list