Handling Inputs and Events
Hemanth Kumar, Abdul Rahman · Apress eBooks · 2016
Handling user input is an essential part of any game. In Cocos2d-js, user input, such as by touch, mouse, or keyboard, is available in the form of events. There are three major parts involved in the event mechanism (see Figure 4-1). These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.