Am Montag, 13. November 2006 18:28 schrieb zz zz:
> >What is this?
> >
> >+                            if (aKeyState[code] & KEY_RELEASED)
> >+                            {
> >+                                    aKeyState[code] &= ~KEY_RELEASED;
> >+                            }
> >+                            if (aKeyState[code] & KEY_RELEASED)
> >+                            {
> >+                                    aKeyState[code] &= ~KEY_RELEASED;
> >+                            }
>
> Think it's a mistake I made,it should be:
>                               if (aKeyState[code] & KEY_RELEASED)
>                               {
>                                       aKeyState[code] &= ~KEY_RELEASED;
>                               }
>                               if (aKeyState[code] & KEY_PRESSRELEASE)
>                               {
>                                       aKeyState[code] &= ~KEY_PRESSRELEASE;
>                               }
>
> >Also: This shall not be an "else if"?
> >
> >+                            lastKeydown = frameGetFrameNumber();
> >
> >Shouldn't this be "lastKeydown = CurrFrameNum;"?
>
> yes,either should work,though yours might be better and faster.
>
> >And: Why can't SDL be used directly? (We just have another layer above the
> >input...)
> >
> >--Dennis
>
> I am not familiar with SDL,but I think there isnt a 'working' doubleclick
> event in SDL.
I mean generally for input handling... Wouldn't it be much simpler to just use 
SDL and in our eventhandler redirect specific events to special functions?
(And not have another layer above it. (and not have 1001 places where events 
are handled, OffTopic))

--Dennis

Attachment: pgpOiQoB597XB.pgp
Description: PGP signature

_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to