reaper2259 Posted August 7, 2016 Share Posted August 7, 2016 Hi everyone i am using the middle mouse buttons scroll to set my camera's position which works fine but i am trying to make it so when i hit the E key it resets the middle mouse to 0, when i use window:SetMousePosition(0,0,0) it sets my mouse cursor to 0,0 on the screen fine but the z axis(the middle scroll wheel) stays at the value it was at, currently i can find no way to set the middle mouse back to the 0 position. so for example if i set up a print command that prints out the middle mouse position then scroll out to say -7 which all works fine but then if i hit E the mouse is set to position 0,0 like it should be but the middle scroll wheel stays at a value of -7. Thanks for any future help. Quote Link to comment Share on other sites More sharing options...
macklebee Posted August 7, 2016 Share Posted August 7, 2016 http://www.leadwerks.com/werkspace/page/api-reference/_/window/windowflushmouse-r904 Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
reaper2259 Posted August 8, 2016 Author Share Posted August 8, 2016 Thanks that worked great, dunno why i didn't try that especially when iv used that exact command just for keys in the past just one of those brain fart moments i think. thanks for your help macklebee. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.