2 Cantaveria - action adventure platform game
3 Copyright (C) 2009 Evan Rinehart
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to
18 The Free Software Foundation, Inc.
19 51 Franklin Street, Fifth Floor
20 Boston, MA 02110-1301, USA
34 //if any, setup sprite update callbacks
36 printf("you just entered the title screen\n");
40 void title_keydown(int key
){
41 printf("you pressed key %d\n",key
);
42 if(key
== keynum(ESCAPE_KEY
)){
47 void title_keyup(int key
){
48 printf("you release key %d\n",key
);
51 void title_joymovex(int joy
, int x
){
52 printf("you moved joystick %d x axis to %d\n",joy
,x
);
55 void title_joymovey(int joy
, int y
){
56 printf("you moved joystick %d y axis to %d\n",joy
,y
);
59 void title_joypress(int joy
, int button
){
60 printf("you pressed joystick %d button %d\n",joy
,button
);
63 void title_joyrelease(int joy
, int button
){
64 printf("you released joystick %d button %d\n",joy
,button
);
71 struct handler title_handler
= {
72 title_keydown
,title_keyup
,title_joymovex
,
73 title_joymovey
,title_joypress
,title_joyrelease