class NonLoopingAction extends BaseAction {
...
public boolean interpolate(double t) {
var result = delegate.interpolate(t);
if (!result) {
composer.removeCurrentAction(AnimComposer.DEFAULT_LAYER);
}
return result;
}
}
So I thought it might be wrong to have this side effect inside interpolate and I wouldn’t mind changing it, but I think keeping it backward compatible and foolproof as before would be nice.
But there is a windows version of the same thing I thought. We’ve had issues reported about this.
My guess is that the primary display is reporting a resolution that’s different than what the OS mouse position thinks resolution is… like with a retina display.
PR 1607 was integrated into “master” branch on 11 November 2021. Since the master-v3.5 split didn’t take place until 15 December, the PR 1607 fix is included in “v3.5” as well.
If you’re thinking of a different fix, I’ll need more hints.
I just tried to reproduce it with linux, my monitor isn’t special but I tried scaling (which I assume is what hi dpi monitors do?).
Using xrandr I tried this and several combinations: xrandr --output HDMI-2 --mode 2560x1440 --scale 0.5x0.5 --output eDP-1 --mode 1920x1080 --scale 1x1 --pos -400x-400
but everything worked fine when I tried with my project that uses lemur.
I wanted to run the vehicles project but I couldn’t build it (jcenter bad gateway).
Maybe you can try playing with xrandr?
I’m thinking maybe windows/macos scale individual windows and not the whole screen so this is not the same.
Just published JME v3.5.0-beta7 to Maven Central. This includes changing the default setting for “UseRetinaFrameBuffer” from true to false, which I’m hoping will solve the recently reported mouse-position bugs. Please test beta7:
This morning I figured out how to enable scaling on my Windows 11 laptop (settings → system → display → scale & layout → scale). I tested MavDemo1 with JME 3.5.0-beta7 and saw that it wasn’t working, so I hacked into GlfwMouseInput until I fixed the issue, at least for MavDemo1 on my laptop.
I’d appreciate it if someone would review the resulting PR 1746 ASAP. Help, please!
With the arrival of “code freeze”, beta testing can wind down now. I send heartfelt thanks to everyone who participated in finding, documenting, and fixing bugs and verifying the fixes.
I imagine many are eager (as I am) to see the fruits of our labor … 3.5.0-stable, here we come!