November 2015
Beginner to intermediate
420 pages
9h 2m
English
Our final class that we need to implement for this chapter is PlayerController. PlayerController is responsible for handling all of the input events and providing mechanisms to process these events in the queue. This class can be found at core/src/com/packtpub/libgdx/bludbourne/PlayerController.java.
A class diagram of this class is shown in the following screenshot (Figure 14):

Figure 14
The source for PlayerController is listed here:
package com.packtpub.libgdx.bludbourne; import java.util.HashMap; import java.util.Map; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Input; ...
Read now
Unlock full access