Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ((context != last_context) && ((last_button & BUTTON_REL) == 0)
- #ifdef HAVE_SCROLLWHEEL
- /* Scrollwheel doesn't generate release events */
- && !(last_button & (BUTTON_SCROLL_BACK | BUTTON_SCROLL_FWD))
- #endif
- )
- {
- if (button & BUTTON_REL)
- {
- last_button = button;
- last_action = ACTION_NONE;
- }
- /* eat all buttons until the previous button was |BUTTON_REL
- (also eat the |BUTTON_REL button) */
- return ACTION_NONE; /* "safest" return value */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement