Return to previous page | Return to menu | Go to next page


9-3. Sample program

The sample program (Listing 9-1) was created for testing the controller input.
The program displays a graphic simulating Saturn PAD on the screen, and if there is a controller input, an instruction mark (finger shape) is displayed on the button at the position corresponding to the controller input.
In this program, sprites are used for instruction marks.

List 9-1 sample_9_1: Input test (main.c)

List 9-1 sample_9_1: Input test (main.c) [continued]

Flow 9-1 sample_9_1: Input test flow chart


Return to previous page | Return to menu | Go to next page