Store bits (integers) of current and previous frame keys held and you can get bits of what keys were just pressed this frame: press=(prev^cur)&cur Useful when an action is a collection of keys to detect new actions: (prev&action)==action Also: rel=(prev^cur)&prev
-
-
good call!
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
cur&~prev?
-
Yep press=~prev&cur release=prev&~cur
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.