Jump to content

Alt Key code


Marcousik
 Share

Recommended Posts

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.

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

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.

Cyclone - Ultra Game System - Component PreprocessorTex2TGA - Darkness Awaits Template (Leadwerks)

If you like my work, consider supporting me on Patreon!

Link to comment
Share on other sites

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.

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

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()?

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

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.

  • Upvote 1

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

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.

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

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.

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...