Skip to content
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

Mouse movement over last frame is wrong #968

Closed
Brunfunstudios opened this issue Oct 19, 2018 · 3 comments
Closed

Mouse movement over last frame is wrong #968

Brunfunstudios opened this issue Oct 19, 2018 · 3 comments

Comments

@Brunfunstudios
Copy link

Hi,
it seems that the moveListener() function for the mouse in Input.hx is called multiple times before endFrame(). This results in only a part of the value being assigned to movementX and movementY.
If changed to

		if (locked) {
			this.movementX += movementX;
			this.movementY += movementY;

Then the value of movementX is the same as the mouse position difference between frames.

I'm on linux that might be the problem as I read somewhere that keyboard events are fired multiple times so this might also apply here. But with this fix it wouldn't matter if its fired multiple times or not.

@DevMagicLord
Copy link

DevMagicLord commented Oct 31, 2018

I agree, + 1

@luboslenco

This comment has been minimized.

@luboslenco
Copy link
Member

Patched in armory3d/iron@216e15a. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants