Few weeks ago I found SneakyJoystick here in this forum. I download it, but I noticed that the code was a bit old. I decided to update the code and make it compatible with cocos2d-x v2.2.1. There are some just some slight changes. You can download the code from here.