Game Development Community

How to disable the response to alt-enter?

by Nicolas Olhaberry · in Torque Game Builder · 04/07/2008 (9:14 pm) · 1 replies

Hi guys,

I would like to disable the response to alt-enter, I don't want it to toggle fullscreen, I just want to ignore that key combination altogether.

From what I've tried, commenting the code in Video::toggleFullScreen() seems to do the trick. But I would like to know the proper way to do it. I've been looking at the sourcecode and I cannot seem to find where that key combination is detected and processed.

Thanks,

Nicolas

#1
04/07/2008 (10:17 pm)
Just a point from someone that toggles games a lot (I love the built in minimize button in Guild Wars), if you plan on keeping the game full screen and disabling the ability to make it windowed or minimized while playing, your players are going to find a way around it. I do all the time. If ALT-ENTER is disabled, I press the Windows Key to get to the desktop, or press CTRL-ALT-DEL to either switch tasks or bring up the task manager. There are always reasons to do such and some games make it really annoying while others make it easy.

On the other hand, if you are making a windowed game and don't want it fullscreen, I've never seen any problems with that. These are just comments from a user-perspective. Forcing a player to stay in the game when he needs to pay a bill right quick or check something for someone only makes him/her dislike that aspect of the game.

I hope that bit of info helps from a user perspective (even if I wasn't helpful towards the original problem). I wish I knew how to disable it for you, but if I come across that I'll pass it on. You could just try re-binding the ALT-ENTER combination to something else that doesn't do anything. Perhaps it will override the default response.