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

cursor() and noCursor() not working on FX2D - OS X #4405

Closed
brendanmatkin opened this Issue Apr 14, 2016 · 1 comment

Comments

Projects
None yet
1 participant
@brendanmatkin

brendanmatkin commented Apr 14, 2016

OS X 10.11.4, Processing 3.0.2

cursor(any argument including PImage) and noCursor() have no effect with FX2D. Work as expected with P2D/P3D (preset cursors) and default renderer (system cursors).

@brendanmatkin

This comment has been minimized.

Show comment
Hide comment
@brendanmatkin

brendanmatkin Apr 14, 2016

Looked into it to try to fix - looks like it's either just calling surface.setCursor() through inheritance (from PApplet I think?) or an empty override method in PSurfaceFX. JavaFX needs to be calling something like stage.scene.setCursor() (and with slightly different arguments). I'm not sure how to actually implement that fix, other than something like:

public void setCursor(int kind) {
   Scene scene = stage.getScene();
   scene.setCursor(kind)
}

etc. In the file: processing/core/src/processing/javafx/PSurfaceFX.java

BUT I don't know what to do with this from here (where to put it & how to build it). Anyone capable want to give it a whirl? I might try in the future but don't have the time to learn how at the moment.

brendanmatkin commented Apr 14, 2016

Looked into it to try to fix - looks like it's either just calling surface.setCursor() through inheritance (from PApplet I think?) or an empty override method in PSurfaceFX. JavaFX needs to be calling something like stage.scene.setCursor() (and with slightly different arguments). I'm not sure how to actually implement that fix, other than something like:

public void setCursor(int kind) {
   Scene scene = stage.getScene();
   scene.setCursor(kind)
}

etc. In the file: processing/core/src/processing/javafx/PSurfaceFX.java

BUT I don't know what to do with this from here (where to put it & how to build it). Anyone capable want to give it a whirl? I might try in the future but don't have the time to learn how at the moment.

JakubValtar added a commit to JakubValtar/processing that referenced this issue Apr 17, 2016

@JakubValtar JakubValtar referenced this issue Apr 17, 2016

Merged

FX fixes #4411

@benfry benfry closed this in #4411 Apr 18, 2016

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