-------------------------------- -- @module Controller -- @parent_module cc -------------------------------- -- Activate receives key event from external key. e.g. back,menu.
-- Controller receives only standard key which contained within enum Key by default.
-- warning The API only work on the android platform for support diversified game controller.
-- param externalKeyCode External key code.
-- param receive True if external key event on this controller should be receive, false otherwise. -- @function [parent=#Controller] receiveExternalKeyEvent -- @param self -- @param #int externalKeyCode -- @param #bool receive -- @return Controller#Controller self (return value: cc.Controller) -------------------------------- -- Gets the name of this Controller object. -- @function [parent=#Controller] getDeviceName -- @param self -- @return string#string ret (return value: string) -------------------------------- -- Indicates whether the Controller is connected. -- @function [parent=#Controller] isConnected -- @param self -- @return bool#bool ret (return value: bool) -------------------------------- -- Gets the Controller id. -- @function [parent=#Controller] getDeviceId -- @param self -- @return int#int ret (return value: int) -------------------------------- -- Changes the tag that is used to identify the controller easily.
-- param tag A integer that identifies the controller. -- @function [parent=#Controller] setTag -- @param self -- @param #int tag -- @return Controller#Controller self (return value: cc.Controller) -------------------------------- -- Returns a tag that is used to identify the controller easily.
-- return An integer that identifies the controller. -- @function [parent=#Controller] getTag -- @param self -- @return int#int ret (return value: int) -------------------------------- -- Start discovering new controllers.
-- warning The API only work on the IOS platform. Empty implementation on other platform. -- @function [parent=#Controller] startDiscoveryController -- @param self -- @return Controller#Controller self (return value: cc.Controller) -------------------------------- -- Stop the discovery process.
-- warning The API only work on the IOS platform.Empty implementation on other platform. -- @function [parent=#Controller] stopDiscoveryController -- @param self -- @return Controller#Controller self (return value: cc.Controller) -------------------------------- -- Gets a Controller object with tag.
-- param tag An identifier to find the controller.
-- return A Controller object. -- @function [parent=#Controller] getControllerByTag -- @param self -- @param #int tag -- @return Controller#Controller ret (return value: cc.Controller) return nil