New Super Mario Bros. U Headers
Loading...
Searching...
No Matches
InputMgr.h
Go to the documentation of this file.
1#pragma once
2
3#include <heap/seadDisposer.h>
4#include <random/seadRandom.h>
5
7{
8 // createInstance() Address: 0x0250C348
9 // deleteInstance() Address: Deleted
10 // sInstance Address: 0x101D2DF8
11 // SingletonDisposer_::~SingletonDisposer_() Address: 0x0250E978
12 // SingletonDisposer_::sStaticDisposer Address: 0x101D2DFC
13 // SingletonDisposer_::vtbl Address: 0x100BED44
15
16public:
17 // Address: 0x0250C1A0
19
21 {
22 return mRandom;
23 }
24
26 {
27 return mBgmBeatTrg;
28 }
29
30 bool isBgmBeatTrg(u8 trg) const
31 {
32 return trg == mBgmBeatTrg;
33 }
34
36 {
37 return mBgmAccentSign;
38 }
39
40 bool isBgmAccentSign(u8 mask) const
41 {
42 return mBgmAccentSign & mask;
43 }
44
46 {
47 return mBgmAccentSignCredit;
48 }
49
51 {
52 return mBgmTempo;
53 }
54
55 bool isPlayerControllerConnected(s32 player_no) const
56 {
57 return (mControllerConnectionInfo & (1 << player_no)) != 0;
58 }
59
60 bool isFadein() const
61 {
62 return (mControllerConnectionInfo & (1 << 7)) != 0;
63 }
64
65 bool isAreaSceneSwitch() const
66 {
67 return mIsAreaSceneSwitch;
68 }
69
70 bool isInputEnabled() const
71 {
73 }
74
75protected:
76 u32 _10[(0x52C - 0x10) / sizeof(u32)];
83 u32 _544[(0x56C - 0x544) / sizeof(u32)];
86 u32 _570[(0x57C - 0x570) / sizeof(u32)];
87};
88static_assert(sizeof(InputMgr) == 0x57C, "InputMgr size mismatch");
89
90#define GAME_RANDOM (InputMgr::instance()->getRandom())
Definition InputMgr.h:7
bool isPlayerControllerConnected(s32 player_no) const
Definition InputMgr.h:55
bool isInputEnabled() const
Definition InputMgr.h:70
bool mControllersRegistered
Definition InputMgr.h:78
u8 getBgmAccentSignCredit() const
Definition InputMgr.h:45
bool isBgmAccentSign(u8 mask) const
Definition InputMgr.h:40
bool isBgmBeatTrg(u8 trg) const
Definition InputMgr.h:30
u16 getBgmTempo() const
Definition InputMgr.h:50
u8 mBgmBeatTrg
Definition InputMgr.h:80
u8 getBgmAccentSign() const
Definition InputMgr.h:35
sead::Random mRandom
Definition InputMgr.h:77
bool isFadein() const
Definition InputMgr.h:60
u8 mBgmAccentSign
Definition InputMgr.h:81
bool isAreaSceneSwitch() const
Definition InputMgr.h:65
u16 mBgmTempo
Definition InputMgr.h:79
u8 mBgmAccentSignCredit
Definition InputMgr.h:82
u32 _570[(0x57C - 0x570)/sizeof(u32)]
Definition InputMgr.h:86
u8 getBgmBeatTrg() const
Definition InputMgr.h:25
u32 _10[(0x52C - 0x10)/sizeof(u32)]
Definition InputMgr.h:76
u32 _544[(0x56C - 0x544)/sizeof(u32)]
Definition InputMgr.h:83
u8 mControllerConnectionInfo
Definition InputMgr.h:84
bool mIsAreaSceneSwitch
Definition InputMgr.h:85
sead::Random & getRandom()
Definition InputMgr.h:20