diff options
author | Benoit Bolsee <benoit.bolsee@online.be> | 2008-04-13 01:18:58 +0400 |
---|---|---|
committer | Benoit Bolsee <benoit.bolsee@online.be> | 2008-04-13 01:18:58 +0400 |
commit | dfd7387641c28f2a80f7647f26c981911d4a8cfe (patch) | |
tree | 9dee61c58544d6cd6944b9a5d2070e089a2efc5a /source/gameengine/GamePlayer/common/GPC_KeyboardDevice.h | |
parent | 6b94db570f07429c04a77e321186785aa4b82800 (diff) |
fix BGE bug #8880: blenderplayer closing when esc is pressed
ESC now quits the game by default in all modes unless a keyboard sensor is set on ESC.
In this case, the game designer must arrange for an alternative way to quit the game.
Diffstat (limited to 'source/gameengine/GamePlayer/common/GPC_KeyboardDevice.h')
-rw-r--r-- | source/gameengine/GamePlayer/common/GPC_KeyboardDevice.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/GamePlayer/common/GPC_KeyboardDevice.h b/source/gameengine/GamePlayer/common/GPC_KeyboardDevice.h index da3dc2398dd..c5c900d276a 100644 --- a/source/gameengine/GamePlayer/common/GPC_KeyboardDevice.h +++ b/source/gameengine/GamePlayer/common/GPC_KeyboardDevice.h @@ -58,9 +58,9 @@ protected: * System dependent keyboard codes are stored as ints. */ std::map<int, KX_EnumInputs> m_reverseKeyTranslateTable; - bool m_hookesc; public: + bool m_hookesc; GPC_KeyboardDevice() : m_hookesc(false) { |