diff options
Diffstat (limited to 'source/gameengine/GamePlayer/common/GPC_KeyboardDevice.cpp')
-rw-r--r-- | source/gameengine/GamePlayer/common/GPC_KeyboardDevice.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/gameengine/GamePlayer/common/GPC_KeyboardDevice.cpp b/source/gameengine/GamePlayer/common/GPC_KeyboardDevice.cpp index 71e20bfe35d..6b6f619f820 100644 --- a/source/gameengine/GamePlayer/common/GPC_KeyboardDevice.cpp +++ b/source/gameengine/GamePlayer/common/GPC_KeyboardDevice.cpp @@ -81,7 +81,7 @@ bool GPC_KeyboardDevice::ConvertEvent(int incode, int val) if (val > 0) { - if (kxevent == SCA_IInputDevice::KX_ESCKEY && val != 0) + if (kxevent == SCA_IInputDevice::KX_ESCKEY && val != 0 && !m_hookesc) result = true; // todo: convert val ?? @@ -125,3 +125,8 @@ bool GPC_KeyboardDevice::ConvertEvent(int incode, int val) } return result; } + +void GPC_KeyboardDevice::HookEscape() +{ + m_hookesc = true; +} |