June 2013
Beginner
352 pages
9h 5m
English
The SimpleApplication class provides you with a handy inputManager object that you can configure.
simpleInitApp() method. Leave the template code that creates the blue cube as it is.inputManager. At the beginning of the method, add the following two lines:public void simpleInitApp(){
inputManager.addMapping(MAPPING_COLOR, TRIGGER_COLOR);
inputManager.addMapping(MAPPING_ROTATE, TRIGGER_ROTATE);
// …
}Read now
Unlock full access