SSBM Decomp
Loading...
Searching...
No Matches
demo.h
Go to the documentation of this file.
1#ifndef _DOLPHIN_DEMO_H_
2#define _DOLPHIN_DEMO_H_
3
4#include <dolphin/gx.h>
5#include <dolphin/pad.h>
6
8 /* 0x00 */ char* name;
9 /* 0x04 */ unsigned long flags;
10 /* 0x08 */ void (*function)(struct STRUCT_MENU*, unsigned long,
11 unsigned long*);
12 /* 0x0C */ struct STRUCT_MENU* link;
13};
14
16 /* 0x00 */ char* title;
17 /* 0x04 */ struct STRUCT_DEMOWIN* handle;
18 /* 0x08 */ struct STRUCT_MENU_ITEM* items;
19 /* 0x0C */ long max_display_items;
20 /* 0x10 */ unsigned long flags;
21 /* 0x14 */ void (*cb_open)(struct STRUCT_MENU*, unsigned long);
22 /* 0x18 */ void (*cb_move)(struct STRUCT_MENU*, unsigned long);
23 /* 0x1C */ void (*cb_select)(struct STRUCT_MENU*, unsigned long);
24 /* 0x20 */ void (*cb_cancel)(struct STRUCT_MENU*, unsigned long);
25 /* 0x24 */ long num_display_items;
26 /* 0x28 */ long num_items;
27 /* 0x2C */ unsigned long max_str_len;
28 /* 0x30 */ long curr_pos;
29 /* 0x34 */ long display_pos;
30};
31
32typedef struct {
33 /* 0x00 */ struct PADStatus pads[4];
34 /* 0x30 */ unsigned long button[4];
35 /* 0x40 */ unsigned long old_button[4];
36 /* 0x50 */ unsigned long changed_button[4];
37 /* 0x60 */ unsigned long repeat_button[4];
38 /* 0x70 */ unsigned long repeat_ctr[4];
40
42 /* 0x00 */ char* name; // offset 0x0, size 0x4
43 /* 0x04 */ unsigned long flags; // offset 0x4, size 0x4
44};
45
47 /* 0x00 */ char* title; // offset 0x0, size 0x4
48 /* 0x04 */ struct STRUCT_DEMOWIN* handle; // offset 0x4, size 0x4
49 /* 0x08 */ struct STRUCT_LISTBOX_ITEM* items; // offset 0x8, size 0x4
50 /* 0x0C */ long max_display_items; // offset 0xC, size 0x4
51 /* 0x10 */ unsigned long flags; // offset 0x10, size 0x4
52 /* 0x14 */ long num_display_items; // offset 0x14, size 0x4
53 /* 0x18 */ long num_items; // offset 0x18, size 0x4
54 /* 0x1C */ unsigned long max_str_len; // offset 0x1C, size 0x4
55 /* 0x20 */ long curr_pos; // offset 0x20, size 0x4
56 /* 0x24 */ long display_pos; // offset 0x24, size 0x4
57 /* 0x28 */ int cursor_state; // offset 0x28, size 0x4
58};
59
60extern unsigned long DEMOFontBitmap[768];
61
67
68// unsorted externs
69extern void DEMOPrintf(s16 x, s16 y, s16 priority, char* str, ...);
70
71extern struct _GXRenderModeObj* DEMOGetRenderModeObj();
72
73#endif // _DOLPHIN_DEMO_H_
void DEMOPrintf(s16 x, s16 y, s16 priority, char *str,...)
Definition DEMOPuts.c:142
unsigned long DEMOFontBitmap[768]
struct _GXRenderModeObj * DEMOGetRenderModeObj()
Definition DEMOInit.c:272
signed short int s16
Definition types.h:6
int y
Definition types.h:1
int x
Definition types.h:0
Definition demo.h:32
unsigned long repeat_ctr[4]
Definition demo.h:38
unsigned long repeat_button[4]
Definition demo.h:37
unsigned long button[4]
Definition demo.h:34
struct PADStatus pads[4]
Definition demo.h:33
unsigned long old_button[4]
Definition demo.h:35
unsigned long changed_button[4]
Definition demo.h:36
Definition pad.h:62
Definition DEMOWin.h:15
Definition demo.h:41
char * name
Definition demo.h:42
unsigned long flags
Definition demo.h:43
Definition demo.h:46
unsigned long max_str_len
Definition demo.h:54
long curr_pos
Definition demo.h:55
struct STRUCT_LISTBOX_ITEM * items
Definition demo.h:49
long display_pos
Definition demo.h:56
unsigned long flags
Definition demo.h:51
struct STRUCT_DEMOWIN * handle
Definition demo.h:48
int cursor_state
Definition demo.h:57
long num_display_items
Definition demo.h:52
long num_items
Definition demo.h:53
long max_display_items
Definition demo.h:50
char * title
Definition demo.h:47
Definition demo.h:7
char * name
Definition demo.h:8
struct STRUCT_MENU * link
Definition demo.h:12
unsigned long flags
Definition demo.h:9
void(* function)(struct STRUCT_MENU *, unsigned long, unsigned long *)
Definition demo.h:10
Definition demo.h:15
void(* cb_cancel)(struct STRUCT_MENU *, unsigned long)
Definition demo.h:24
unsigned long max_str_len
Definition demo.h:27
struct STRUCT_DEMOWIN * handle
Definition demo.h:17
void(* cb_select)(struct STRUCT_MENU *, unsigned long)
Definition demo.h:23
char * title
Definition demo.h:16
void(* cb_open)(struct STRUCT_MENU *, unsigned long)
Definition demo.h:21
long num_display_items
Definition demo.h:25
struct STRUCT_MENU_ITEM * items
Definition demo.h:18
void(* cb_move)(struct STRUCT_MENU *, unsigned long)
Definition demo.h:22
unsigned long flags
Definition demo.h:20
long num_items
Definition demo.h:26
long curr_pos
Definition demo.h:28
long display_pos
Definition demo.h:29
long max_display_items
Definition demo.h:19