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
Right click joystick scrolling getting stuck #13300
Comments
Ok, I think I've fixed this on a local version of the game. I'll run it for a while to make sure it hasn't broken anything and submit a PR shortly if it's all good. |
Hi @dsimmons87, that are good news. |
Well I've tested mine and it's still not perfect. I've fixed the issue with left click which joystick moving making the camera move by overriding the YieldMouseFocus method. Is this the same thing you done? However there is also another issue I've noticed when testing, where if you are moving the mouse around quickly and right clicking, for example if you are guiding a yak around, it moves the camera because it is triggering the right-click joystick. I'm not sure if this is another issue entirely, but was going to see if it was easy to fix. The only thought I've had is maybe have a time delay or something? |
Yes, exactly, overriding the YieldMouseFocus method to cancel scrolling. It worked, but I had to do another small change. |
I think the issue with Yak is that you are not doing it quickly, but that while you do it quickly you move the mouse little while holding right mouse button (which you use for moving and also scrolling), so it works as should. |
Yeah true, it is just to do with the mouse moving while issuing an order. I've also just tested this in Generals, and it does the same thing. I've tested with your code and it works perfectly for me. |
I have my mouse set up to right click joystick scrolling (like in generals), however sometimes when issues orders (also with right click), and panning the camera around, the camera seems to randomly start moving one way, and the only way to stop it is to right click, which often means troops end up being sent to the other side of the map.
If it helps, I think it may be something to do with left click too. Immediately left clicking while in a right click joystick move maybe.
I've attached a screenshot of my input settings:
To replicate pretty easily:
The text was updated successfully, but these errors were encountered: