From 5c20885ad1da2af0bc63a6c4227e4fbbb2cda4eb Mon Sep 17 00:00:00 2001 From: samuele3hu Date: Wed, 17 Dec 2014 11:27:01 +0800 Subject: [PATCH] Synchronize the KeyCode Enum to Lua --- .../lua-bindings/script/cocos2d/Cocos2dConstants.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cocos/scripting/lua-bindings/script/cocos2d/Cocos2dConstants.lua b/cocos/scripting/lua-bindings/script/cocos2d/Cocos2dConstants.lua index 641ac22a0d..defb4a51b8 100644 --- a/cocos/scripting/lua-bindings/script/cocos2d/Cocos2dConstants.lua +++ b/cocos/scripting/lua-bindings/script/cocos2d/Cocos2dConstants.lua @@ -327,8 +327,11 @@ cc.KeyCodeKey = "KEY_RETURN", "KEY_CAPS_LOCK", "KEY_SHIFT", + "KEY_RIGHT_SHIFT", "KEY_CTRL", + "KEY_RIGHT_CTRL", "KEY_ALT", + "KEY_RIGHT_ALT", "KEY_MENU", "KEY_HYPER", "KEY_INSERT", @@ -488,6 +491,9 @@ for k,v in ipairs(cc.KeyCodeKey) do end cc.KeyCode.KEY_BACK = cc.KeyCode.KEY_ESCAPE +cc.KeyCode.KEY_LEFT_SHIFT = cc.KeyCode.KEY_SHIFT +cc.KeyCode.KEY_LEFT_CTRL = cc.KeyCode.KEY_CTRL +cc.KeyCode.KEY_LEFT_ALT = cc.KeyCode.KEY_ALT cc.EventAssetsManagerEx = {