Unify mouse pressed/released events across renderers #4797

Merged
merged 1 commit into from Jan 6, 2017

Conversation

Projects
None yet
2 participants
@JakubValtar
Contributor

JakubValtar commented Dec 29, 2016

OPENGL and FX renderers will now correctly report button which triggered
this pressed/released event (same as JAVA2D).

Previously:

  • OPENGL would report currently pressed buttons in order LEFT, CENTER,
    RIGHT regardless of which button triggered the event. E.g. when holding
    LEFT and presing RIGHT, LEFT would be reported. When holding CENTER and
    pressing LEFT, LEFT would be reported
  • FX would report only first button which is down, so in RELEASE event
    button would be missing

Now:

  • event contains only button which triggred this event (button just
    pressed or just released)

Fixes #4361

Unify mouse pressed/released events across renderers
OPENGL and FX renderers will now correctly report button which triggered
this pressed/released event (same as JAVA2D).

Previously:
- OPENGL would report currently pressed buttons in order LEFT, CENTER,
RIGHT regardless of which button triggered the event. E.g. when holding
LEFT and presing RIGHT, LEFT would be reported. When holding CENTER and
pressing LEFT, LEFT would be reported
- FX would report only first button which is down, so in RELEASE event
button would be missing

Now:
- event contains only button which triggred this event (button just
pressed or just released)

@benfry benfry merged commit 3a3dca2 into processing:master Jan 6, 2017

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Jan 6, 2017

Member

Oh, how I love it when you fix these cross renderer, cross platform headaches like this. 😍

Member

benfry commented Jan 6, 2017

Oh, how I love it when you fix these cross renderer, cross platform headaches like this. 😍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment