1 /* Project 16 Source Code~
\r
2 * Copyright (C) 2012-2017 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover
\r
4 * This file is part of Project 16.
\r
6 * Project 16 is free software; you can redistribute it and/or modify
\r
7 * it under the terms of the GNU General Public License as published by
\r
8 * the Free Software Foundation; either version 3 of the License, or
\r
9 * (at your option) any later version.
\r
11 * Project 16 is distributed in the hope that it will be useful,
\r
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
14 * GNU General Public License for more details.
\r
16 * You should have received a copy of the GNU General Public License
\r
17 * along with this program. If not, see <http://www.gnu.org/licenses/>, or
\r
18 * write to the Free Software Foundation, Inc., 51 Franklin Street,
\r
19 * Fifth Floor, Boston, MA 02110-1301 USA.
\r
26 #include "src/lib/16_head.h"
\r
27 #include "src/lib/16text.h"
\r
28 #include "src/lib/16_pm.h"
\r
29 #include "src/lib/16_mm.h"
\r
30 #include "src/lib/16_ca.h"
\r
31 #include "src/lib/16_in.h"
\r
32 #include "src/lib/16_vl.h"
\r
33 #include "src/lib/testpatt.h"
\r
35 #define FUNCTIONKEYFUNCTIONS \
\r
36 if(IN_KeyDown(88)){ panswitch=!panswitch; IN_UserInput(1,1); } \
\r
37 FUNCTIONKEYFUNCTIONS0EXE
\r
39 #define FUNCTIONKEYFUNCTIONS0EXE \
\r
40 if(IN_KeyDown(sc_F4)){ turboXT(12); IN_UserInput(1,1); } \
\r
41 if(IN_KeyDown(87/*sc_F11*/)){ pagedelayrendermap=!pagedelayrendermap; IN_UserInput(1,1); } \
\r
42 if(IN_KeyDown(68/*sc_F10*/)){ gvar.kurokku.fpscap=!gvar.kurokku.fpscap; IN_UserInput(1,1); } \
\r
43 if(IN_KeyDown(sc_F9)){ pagenorendermap=!pagenorendermap; IN_UserInput(1,1); } \
\r
44 if(IN_KeyDown(sc_F8)){ gvar.video.bgps=!gvar.video.bgps; IN_UserInput(1,1); } \
\r
45 if(IN_KeyDown(sc_F7)){ ZC_ShowMV(&mv, 0, 1); IN_UserInput(1,1); } \
\r
46 if(IN_KeyDown(sc_F6)){ ZC_ShowMV(&mv, 0, 0); IN_UserInput(1,1); } \
\r
47 if(IN_KeyDown(sc_T)){ gvar.video.rss=!gvar.video.rss; IN_UserInput(1,1); } \
\r
48 if(IN_KeyDown(sc_P)){ modexpdump(&gvar.video.page[0]); IN_UserInput(1,1); }
\r
54 #define PANKEYFUNZC \
\r
55 ZC_panPageManual(&mv, &player, 0);
\r
57 #define FUNCTIONKEYSHOWMV \
\r
58 if(IN_KeyDown(1+1)){ gvar.video.sp=0; ZC_ShowMV(&mv, 0, 0); } \
\r
59 if(IN_KeyDown(2+1)){ gvar.video.sp=1; ZC_ShowMV(&mv, 0, 0); } \
\r
60 if(IN_KeyDown(3+1)){ gvar.video.sp=2; ZC_ShowMV(&mv, 0, 1); } \
\r
61 if(IN_KeyDown(4+1)){ gvar.video.sp=3; ZC_ShowMV(&mv, 0, 1); } \
\r
63 #define FUNCTIONKEYDRAWJUNK \
\r
65 FUNCTIONKEYDRAWJUNKNOMV
\r
67 #define FUNCTIONKEYDRAWJUNKNOMV \
\r
68 if(IN_KeyDown(sc_A)) modexClearRegion(&gvar.video.page[2], 0, 0, gvar.video.page[2].sw, gvar.video.page[2].sh, 3); \
\r
69 if(IN_KeyDown(sc_S)) modexClearRegion(&gvar.video.page[3], 0, 0, gvar.video.page[3].sw, gvar.video.page[3].sh, 4); \
\r
71 if(IN_KeyDown(sc_Z)){ DRAWCORNERBOXES } \
\r
72 if(IN_KeyDown(sc_X)){ TESTBG12 } \
\r
73 if(IN_KeyDown(sc_C)){ TESTBG34 } \
\r
74 if(IN_KeyDown(sc_V)) VL_PatternDraw(&gvar.video, 0, 1, 1);
\r
76 void DebugMemory_(global_game_variables_t *gvar, boolean q);
\r
77 void Shutdown16(global_game_variables_t *gvar);
\r
78 void Startup16(global_game_variables_t *gvar);
\r
79 void ClearMemory (global_game_variables_t *gvar);
\r
80 void Quit (global_game_variables_t *gvar, char *error);
\r
81 void turboXT(byte bakapee);
\r
85 #endif /*__16_TAIL__ */
\r