2014-07-11 17:48:20 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module EventController
|
|
|
|
-- @extend Event
|
|
|
|
-- @parent_module cc
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-25 11:59:57 +08:00
|
|
|
-- Gets the event type of the controller.<br>
|
|
|
|
-- return The event type of the controller.
|
2014-07-11 17:48:20 +08:00
|
|
|
-- @function [parent=#EventController] getControllerEventType
|
|
|
|
-- @param self
|
2014-07-17 22:20:04 +08:00
|
|
|
-- @return int#int ret (return value: int)
|
2014-07-11 17:48:20 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-25 11:59:57 +08:00
|
|
|
-- Sets the connect status.<br>
|
|
|
|
-- param True if it's connected.
|
2014-07-11 17:48:20 +08:00
|
|
|
-- @function [parent=#EventController] setConnectStatus
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #bool isConnected
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return EventController#EventController self (return value: cc.EventController)
|
2014-07-11 17:48:20 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-25 11:59:57 +08:00
|
|
|
-- Gets the connect status.<br>
|
|
|
|
-- return True if it's connected.
|
2014-07-11 17:48:20 +08:00
|
|
|
-- @function [parent=#EventController] isConnected
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-07-11 17:48:20 +08:00
|
|
|
-- @function [parent=#EventController] setKeyCode
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #int keyCode
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return EventController#EventController self (return value: cc.EventController)
|
2014-07-11 17:48:20 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-07-11 17:48:20 +08:00
|
|
|
-- @function [parent=#EventController] getController
|
|
|
|
-- @param self
|
|
|
|
-- @return Controller#Controller ret (return value: cc.Controller)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-25 11:59:57 +08:00
|
|
|
-- Gets the key code of the controller.<br>
|
|
|
|
-- return The key code of the controller.
|
2014-07-11 17:48:20 +08:00
|
|
|
-- @function [parent=#EventController] getKeyCode
|
|
|
|
-- @param self
|
|
|
|
-- @return int#int ret (return value: int)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-07-17 22:20:04 +08:00
|
|
|
-- @overload self, int, cc.Controller, bool
|
|
|
|
-- @overload self, int, cc.Controller, int
|
2014-07-11 17:48:20 +08:00
|
|
|
-- @function [parent=#EventController] EventController
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #int type
|
2014-07-11 17:48:20 +08:00
|
|
|
-- @param #cc.Controller controller
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #int keyCode
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return EventController#EventController self (return value: cc.EventController)
|
2014-07-11 17:48:20 +08:00
|
|
|
|
|
|
|
return nil
|