Advertisement

Advanced Input Handling

  • Arjan Egges

Abstract

In this chapter, you will create a more advanced input handling mechanism. At the same time, a few important programming concepts, such as arrays and dictionaries, will be introduced. In the Painter game, input handling was rather basic. You only kept track of the last position that the player touched. For Painter, that was sufficient since the player plays the game using a single finger. In more complex games, this basic method of input handling is not enough. In particular, in Tut’s Tomb, the player may use multiple fingers to drag objects over the screen. In this chapter, you are going to extend the InputHelper class and make it suitable for handling multitouch input.

Keywords

Unique Identifier Optional Type Exclamation Mark Multiple Finger Touch Event 
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.

Copyright information

© Arjan Egges 2015

Authors and Affiliations

  • Arjan Egges
    • 1
  1. 1.TBThe Netherlands

Personalised recommendations