cocos2d/cocos2d-x — pull request #4433 by ricardoquesada (2013-12-05 03:21:33+00:00)
Title: Console

A helper class that let's the user control the game remotely.
Currently it supports these commands: "fps on", "fps off", "scene graph", "help", "exit".

But it is easy to add new commands without modifying the cocos2d code.

It also adds a helper function in Scheduler that lets you run an `std::function` in the cocos2d thread.

Use cases:
- It can use for realtime debugging (useful for the new renderer)
- for QA automation