Game Development Reference
In-Depth Information
7
Cross-platform UI
and Input Systems
In this chapter, we will cover:
F
Processing multi-touch events on Android
F
Setting up multi-touch emulation on Windows
F
Handling multi-touch events on Windows
F
Recognizing gestures
F
Implementing an on-screen joypad
F
Using FreeType for text rendering
F
Localization of in-game strings
Introduction
A mobile user interface is based (besides graphics rendering) on multi-touch input. This
chapter shows you how to handle the touch events on the Android OS, and how to debug them
on Windows. A dedicated recipe about the emulation of multi-touch capabilities on Windows
using multiple mice is also included. The rest of the chapter is devoted to high-quality text
rendering and supporting multiple languages.