DerRidda Posted August 30, 2014 Share Posted August 30, 2014 Taking the risk that this is another derpy bug report on my part because today is the day I miss obvious things. After a fellow forumite has kindly pointed out to me how to get the mousewheel with the z axis of Window::GetMousePosition() I tried to do just that and I'm just not seeing a value in the z component other than 0. To make sure the fast update doesn't simply always reset my text output I made sure to only capture values other than 0. if self.window:GetMousePosition().z ~= 0 then mwheel = self.window:GetMousePosition().z end self.context:DrawText("Mouse Wheel axis: " ..mwheel,2,14) Directly below the FPS counter in App.lua. I defined mwheel in App:Start() as 0.1, turns out it never changes, ergo the z axis is never not 0. This works for x and y without problems but z is always 0 so I'm fairly certain this is not being an idiot again. Link to comment Share on other sites More sharing options...
Rick Posted August 30, 2014 Share Posted August 30, 2014 I thought I saw a post around here recently where Josh said it was just a placeholder for now and that the functionality isn't there for this atm. Link to comment Share on other sites More sharing options...
DerRidda Posted August 30, 2014 Author Share Posted August 30, 2014 That was this one here, right? http://www.leadwerks.com/werkspace/topic/10444-setmouseposition-not-setting-z-value Was the placeholder limited to Set or was Get included? Because macklebeee told me the example he posted works for him under Windows and I tested it and it doesn't do anything for me. Does it work for you? Link to comment Share on other sites More sharing options...
Rick Posted August 30, 2014 Share Posted August 30, 2014 Ah, I stopped looking at the topic after Josh's comment. If mac says it works under Windows then I'm sure it does. He's a smart guy. Don't have time atm to test. Link to comment Share on other sites More sharing options...
beo6 Posted August 30, 2014 Share Posted August 30, 2014 window:GetMousePosition().z definetly works under windows. So if it does not work under Linux it is most likely a bug. Link to comment Share on other sites More sharing options...
Josh Posted December 20, 2014 Share Posted December 20, 2014 I believe this is fixed. Can you confirm? My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
DerRidda Posted December 20, 2014 Author Share Posted December 20, 2014 Yes, this was fixed a while ago. Link to comment Share on other sites More sharing options...
Recommended Posts