Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Windows / Disabling the "ESC" key (Tier 2)

Author
Message
george++
12
Years of Service
User Offline
Joined: 13th May 2007
Location: Hellas
Posted: 1st Apr 2012 12:03
When an application is running will be terminated if you press the "ESC" key. I am wondering if there is a way to disable this without any modification in the code of the "Core.cpp" file:


Thanks
kamac
9
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 1st Apr 2012 12:44 Edited at: 1st Apr 2012 12:45
Nope. You cannot do that without changing Core.cpp, because it uses DirectInput(?). Anyway, you cannot catch key press before Core.cpp does.

Even if it's possible somehow (It'd be hard probably), it's yet easier just to change core.cpp.

george++
12
Years of Service
User Offline
Joined: 13th May 2007
Location: Hellas
Posted: 1st Apr 2012 13:40
Hi kamac, and thanks for your response.
victordavion
7
Years of Service
User Offline
Joined: 3rd Jan 2012
Location:
Posted: 18th Apr 2012 01:10
I was never even aware it did this. I use the ESC key all the time and I have it return to the menu. It never closes my application. Was this changed or something? I'm going to go delve into my copy of Core.cpp.

Login to post a reply

Server time is: 2019-12-09 08:21:26
Your offset time is: 2019-12-09 08:21:26