summaryrefslogtreecommitdiff
path: root/include/d/d_home_button.h
blob: b28604a3531db52da467acd1ed67c6f3f1407c2c (plain)
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
#ifndef D_HOME_BUTTON_H
#define D_HOME_BUTTON_H

#include <revolution/hbm.h>
#include "JSystem/J2DGraph/J2DOrthoGraph.h"

class dHomeButton_c {
public:
    dHomeButton_c() {
        field_0x7c = 0;
    }

    void create_(int, void*);
    int execute_();
    void initHomeButtonInfo(int, void*);
    void initCursorPos();
    void calcCursorPos();
    void onReset();

    static void create(int, void*);
    static int execute();
    static void drawCapture(u8, void (*)(J2DOrthoGraph&, void*), void*);

    static dHomeButton_c* m_myObj;
    static u8 lbl_8053A724;
    static u8 lbl_8053A725;

    /* 0x00 */ HBMDataInfo m_info;
    /* 0x38 */ HBMControllerData m_controllerData;
    /* 0x78 */ u32 field_0x78;
    /* 0x7C */ u8 field_0x7c;
};

#endif /* D_HOME_BUTTON_H */