Motorola E680 Technical Manual - Page 26
Gaming API/Multiple Key Press
View all Motorola E680 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 26 highlights
8 Gaming API/Multiple Key Press Gaming API The Gaming API provides a series of classes that enable rich gaming content for the handset. This API improves performance by minimizing the amount of work done in Java, decreasing application size. The Gaming API is structured to provide freedom in implementation, extensively using native code, hardware acceleration, and device-specific image data formats as needed. The API uses standard low-level graphic classes from MIDP so the high-level Gaming API classes can be used in conjunction with graphics primitives. This allows for rendering a complex background using the Gaming API while rendering something on top of it using graphics primitives. Methods that modify the state of Layer, LayerManager, Sprite, and TiledLayer objects generally do not have any immediate visible side effects. Instead, this state is stored within the object and is used during subsequent calls to the paint() method. This approach is suitable for gaming applications where there is a cycle within the objects' states being updated and the entire screen is redrawn at the end of every game cycle. Multiple Key Press Support Multi-button press support enhances the gaming experience for the user. Multi-button press support gives the user the ability to press two (2) keys simultaneously and the corresponding actions of both keys will occur simultaneously. An example of this action would be the following: • If Left + Fire were pressed at the same time, the Java object (e.g Canvas) will receive Left Pressed + Fire Pressed. In the same way, when the 2 keys are released, Java object (e.g. Canvas) will receive Left Released + Fire Released. The following sets of keys will support multi-button press support on the Motorola E680 handset. Multi-button press within each set will be supported, while multi-button press across these sets or with other keys will not be supported. Set 1 - Nav (Up), Nav (Down), Nav (Right, Nav (Left) 26