Uocjat Posted January 26, 2014 Share Posted January 26, 2014 Greetings! So I've been thwacking away at Leadwerks indie edition for the last couple of days trying to get my footing and it's going pretty well so far despite a few things that seem to be missing here and there (and usually be worked around so not too bad) I currently have a quite simple 3rd/1st person controller running around with mouse look largely taken from the tutorials the problem I'm having though is that the part of the mouse look that's resetting the mouse to the center of the screen seems to run even when alt-tabbing effectively locking the mouse to one point on the screen I've tried with full screen as well in hopes that I might just be an issue to do with the 'game' still being on screen but same thing so my question is - is there anyway to check if the game I currently the active window or am I going to have to come up with a different solution for mouse looking all together? (even if I end up doing that it's still something I'd like to have for a sort of pause on unfocus though) I guess I could just check for minimized but then I'd have not support windowed which is an option I personally prefer to have Quote Link to comment Share on other sites More sharing options...
gamecreator Posted January 26, 2014 Share Posted January 26, 2014 Check out the window functions. I haven't used it before but maybe GetCurrent is what you're looking for (there used to be a function called AppSuspended in Leadwerks 2 but I couldn't find it here). Quote Link to comment Share on other sites More sharing options...
Uocjat Posted January 26, 2014 Author Share Posted January 26, 2014 I've tried that but all I seem to get from that is hex address (or something to that effect) which is different every time I run the game and doesn't seem to change at all when alt-tabbing Quote Link to comment Share on other sites More sharing options...
Ywa Posted March 2, 2014 Share Posted March 2, 2014 Bump. Running into the same issue. Is there a way to check if the current window is active or not? Quote Link to comment Share on other sites More sharing options...
bandrewk Posted March 2, 2014 Share Posted March 2, 2014 There is a method Window::Active(); but it seems like it is not exposed to LUA. Quote Link to comment Share on other sites More sharing options...
Ywa Posted March 28, 2014 Share Posted March 28, 2014 Josh, can this be exposed to Lua? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
DudeAwesome Posted March 28, 2014 Share Posted March 28, 2014 post this as suggestion Quote It doesn´t work... why? mhmmm It works... why? 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.