Skip to content

Mouse Coords in LWJGL3 are being multipled by scaling factor on all machines causing coords to be off. #1745

Description

@bob0bob

if you create a window of 100x100 and have a display that reports DPI scaling. GlfwMouseInput. private void onCursorPos(final long window, final double xpos, final double ypos)

this method is multiplying the mouse coord by the monitor scaling even when not being used. It causes anything based on mouse coords to fail. Specially GUI, mouse clicks on buttons and such are off by 2.5 times.

Metadata

Metadata

Assignees

Labels

bugSomething that is supposed to work, but doesn't. More severe than a "defect".

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions