New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mouseWheel() not working when using FX2D renderer #4169

Closed
biggestpleb opened this Issue Nov 25, 2015 · 3 comments

Comments

Projects
None yet
4 participants
@biggestpleb

biggestpleb commented Nov 25, 2015

When using the FX2D renderer mouseWheel() is not called when the mouse wheel is moved.

void setup() {
  size(100, 100, FX2D);
}

void draw() {} 

void mouseWheel(MouseEvent event) {
  float e = event.getCount();
  println(e);
}

The other mouse functions (mousePressed(), mouseReleased() etc.) all work fine. The above sample code works if the renderer is changed to anything other than FX2D.

(Win 8 64bit)

@brendanmatkin

This comment has been minimized.

Show comment
Hide comment
@brendanmatkin

brendanmatkin Dec 13, 2015

Can confirm this for OSX 10.11.1, Processing 3.0.1.

(both with trackpad on retina and wireless mouse with scroll wheel)

brendanmatkin commented Dec 13, 2015

Can confirm this for OSX 10.11.1, Processing 3.0.1.

(both with trackpad on retina and wireless mouse with scroll wheel)

@Dolphin101546015

This comment has been minimized.

Show comment
Hide comment
@Dolphin101546015

Dolphin101546015 Nov 8, 2016

In Windows 10 x64, also not working.
Also not working mouse buttons:
left and right buttons have one event.
Processing 3.2.2, Processing 3.2.3

Dolphin101546015 commented Nov 8, 2016

In Windows 10 x64, also not working.
Also not working mouse buttons:
left and right buttons have one event.
Processing 3.2.2, Processing 3.2.3

@tarabishy2020

This comment has been minimized.

Show comment
Hide comment
@tarabishy2020

tarabishy2020 Jul 30, 2017

This is still a problem in the latest release(3.3.5) any work around for this?
It behaves differently when FX2D is used (event.getCount() returns zero a lot while the scroll is being used and then some times suddenly jumps to -2 or 2) and when it is not (event.getCount() returns 1 or -1 consistently if you are scrolling up or down)
@JakubValtar @benfry

tarabishy2020 commented Jul 30, 2017

This is still a problem in the latest release(3.3.5) any work around for this?
It behaves differently when FX2D is used (event.getCount() returns zero a lot while the scroll is being used and then some times suddenly jumps to -2 or 2) and when it is not (event.getCount() returns 1 or -1 consistently if you are scrolling up or down)
@JakubValtar @benfry

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