Marcousik Posted December 30, 2015 Share Posted December 30, 2015 As the title tells, do somebody know if we can detect the "Alt"-Key pressed with KeyHit() Funktion, what is the code for the Keys Alt and Alt Gr ? http://www.leadwerks.com/werkspace/page/api-reference/_/key thx Quote Link to comment Share on other sites More sharing options...
macklebee Posted December 30, 2015 Share Posted December 30, 2015 It's Key.Alt for both. Edit- though right now it is not really useable since it appears its hardcoded inside the executable to pause the application. That really needs to be removed from Josh's code. 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...
macklebee Posted January 4, 2016 Share Posted January 4, 2016 I would appreciate if other people would run their games via the editor or as standalone and press the ALT key to verify this problem. Every LE game I run from the editor, a standalone application, or the game launcher will pause if either ALT key is pressed. This does not occur for me in any other application or game so it appears to be hardcoded somewhere inside LE. 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...
reepblue Posted January 4, 2016 Share Posted January 4, 2016 Confirmed. I tested it in the Vectronic demo, and my C++ project. It's useful, but pausing is more associated with the Esc key. This might have to do with the steam overlay (Alt+Shift), but people can change that too. Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
macklebee Posted January 4, 2016 Share Posted January 4, 2016 This might have to do with the steam overlay (Alt+Shift), but people can change that too. Yes it does appear to be related to Steamworks:Initialize() - strange that none of my other steam games or apps pause when just the ALT key is pressed. Agree that it could be useful but that binding should be left up to the programmer. 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...
reepblue Posted January 4, 2016 Share Posted January 4, 2016 My C++ doesn't call Steamworks, but I'm still getting the alt pausing. Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
macklebee Posted January 4, 2016 Share Posted January 4, 2016 My C++ doesn't call Steamworks, but I'm still getting the alt pausing. In my lua apps, it only occurs when I have Steamworks:Initialize() in the main.lua script. In your c++ app, does it call main.lua and does your main.lua script have Steamworks:Initialize()? 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...
reepblue Posted January 4, 2016 Share Posted January 4, 2016 Nope. Not in main.lua (Which the app doesn't use anyway) nor anywhere in the C++ code. Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
macklebee Posted January 4, 2016 Share Posted January 4, 2016 Nope. Not in main.lua (Which the app doesn't use anyway) nor anywhere in the C++ code. thats weird. hmmmm. 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...
macklebee Posted January 10, 2016 Share Posted January 10, 2016 Is this problem caused by this? http://www.leadwerks.com/werkspace/topic/13060-best-way-to-make-a-pause-screen-mid-game/#entry92758 Some mysterious built-in method that Josh was going to implement but never officially released? If so, I still say the KeyHit selection should be left up to the individual programmer. 1 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...
Josh Posted January 10, 2016 Share Posted January 10, 2016 Apparently this is a common thing when running many games in windowed mode: http://www.starpointgemini.com/forum/showthread.php?tid=985 http://www.gamedev.net/topic/563913-alt-key-freezes-game-window-windows/ http://forums.steampowered.com/forums/showthread.php?t=2475764 In windowed mode, the alt key activates the window menu, even if none exists. F10 does something similar. Quote 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...
macklebee Posted January 10, 2016 Share Posted January 10, 2016 In windowed mode, the alt key activates the window menu, even if none exists. Interesting. It appears to be just Titlebar at least in Leadwerks apps. On my test just now, if the LE game is windowed and borderless, then it doesn't appear to pause. If it has a Titlebar, it pauses every time. 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...
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.