action.h
1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*---------------------------------------------------------------------
Copyright (C) 1997, Nintendo.
File action.h
Coded by Yoshitaka Yasumoto. Mar 19, 1997.
Modified by
Comments
$Id: action.h,v 1.1.1.1 2002/05/02 03:27:17 blythe Exp $
---------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*
* コントローラ構造体
*---------------------------------------------------------------------------*/
typedef struct {
OSContPad *c;
u16 button;
u16 push;
u16 release;
} myContPad;
/*---------------------------------------------------------------------------*
* アクションデータ構造体
*---------------------------------------------------------------------------*/
typedef struct {
myContPad pad[MAXCONTROLLERS];
u16 active;
s16 imageX;
s16 imageY;
s32 imageYorig;
s16 frameX;
s16 frameY;
u16 frameW;
u16 frameH;
s16 objX;
s16 objY;
u16 scaleW;
u16 scaleH;
u16 theta;
u16 frameScaleW;
u16 frameScaleH;
} Action;
/*---------------------------------------------------------------------------*
* メニューメッセージ ID
*---------------------------------------------------------------------------*/
#define MENU_CONTROL 0
#define MENU_RENDERMODE 1
#define MENU_RENDERMODE_2 2
#define MENU_OBJ_TX_TYPE 3
#define MENU_OBJ_TX_LOAD_BY 4
#define MENU_OBJ_TX_WINDOW 5
#define MENU_OBJ_SHRINK 6
#define MENU_OBJ_FLIPS 7
#define MENU_OBJ_FLIPT 8
#define MENU_BG_SCALABLE 9
#define MENU_BG_TX_LOAD_BY 10
#define MENU_BG_TX_FORMAT 11
#define MENU_BG_FLIPS 12
#define NUM_MENU 13
/*---------------------------------------------------------------------------*
* プロトタイプ宣言
*---------------------------------------------------------------------------*/
extern Action Ac;
extern u8 aMenu[NUM_MENU];
extern void menuInit(void);
extern void menuHandler(myContPad *);
extern void actionInit(void);
extern void actionUpdate(void);
/*======== End of action.h ========*/