1.9 Shinobi Initialization
Within each of the sample program directories exists the source file SbInit.c. This file contains all the code
necessary to initialize the Shinobi library system.
The following section describes how you can modify SbInit.c to perform the most common customizations to
the Ninja and Kamui samples
1) Controller Box
Set 4 development systems are shipped with two versions of the Maple controller box. The older type
is labeled Maple Bus - SATURN in the upper right-hand corner. The newer type has a Katana
scripted signature near the bottom of the box. The updated Maple bus design supports both Saturn
and Dreamcast controllers.
The sample programs were originally built for the older Saturn Maple controller box. If you received
a Katana controller box, change the USE_DCPAD definition to 1 (true) and re-compile.
#define USE_DCPAD 1
/* 0...Use Saturn Maple controller box. */
/* 1...Use Dreamcast controller box. */
The best sample program to test the Maple bus is Print, located in the
Katana\Lib\Ninja\Samples folder. Plug a Saturn 3D analog “Nights” controller into Port A and
run the sample. Control pad movement and button presses will be displayed on the screen.
Click to expand...