sead
Loading...
Searching...
No Matches
seadCafeRemoteControllerCafe.h
Go to the documentation of this file.
1#ifndef SEAD_CAFE_REMOTE_CONTROLLER_CAFE_H_
2#define SEAD_CAFE_REMOTE_CONTROLLER_CAFE_H_
3
4#include <controller/seadController.h>
5
6namespace sead {
7
9{
11
12public:
13 CafeRemoteController(ControllerMgr* mgr, s32 channel);
14 virtual ~CafeRemoteController() { }
15
16 bool isConnected() const override { return mIsConnected; }
17
18 s32 getChannel() const { return mChannel; }
19
20 u8 getCurrentDeviceType() const { return mDeviceTypeCurrent; }
21 u8 getLastConnectedDeviceType() const { return mDeviceTypeLastConnected; }
22
23 bool isEnableCL() const { return mIsEnableCL; }
24 void setEnableCL(bool enable) { mIsEnableCL = enable; }
25
26private:
27 void calcImpl_() override;
28
34};
35static_assert(sizeof(CafeRemoteController) == 0x164, "sead::CafeRemoteController size mismatch");
36
37} // namespace sead
38
39#endif // SEAD_CAFE_REMOTE_CONTROLLER_CAFE_H_
Definition seadCafeRemoteControllerCafe.h:9
u8 getCurrentDeviceType() const
Definition seadCafeRemoteControllerCafe.h:20
bool mIsConnected
Definition seadCafeRemoteControllerCafe.h:32
bool mIsEnableCL
Definition seadCafeRemoteControllerCafe.h:33
u8 getLastConnectedDeviceType() const
Definition seadCafeRemoteControllerCafe.h:21
bool isEnableCL() const
Definition seadCafeRemoteControllerCafe.h:23
u8 mDeviceTypeCurrent
Definition seadCafeRemoteControllerCafe.h:30
s32 mChannel
Definition seadCafeRemoteControllerCafe.h:29
virtual ~CafeRemoteController()
Definition seadCafeRemoteControllerCafe.h:14
u8 mDeviceTypeLastConnected
Definition seadCafeRemoteControllerCafe.h:31
s32 getChannel() const
Definition seadCafeRemoteControllerCafe.h:18
CafeRemoteController(ControllerMgr *mgr, s32 channel)
Definition seadCafeRemoteControllerCafe.cpp:7
void setEnableCL(bool enable)
Definition seadCafeRemoteControllerCafe.h:24
void calcImpl_() override
Definition seadCafeRemoteControllerCafe.cpp:18
bool isConnected() const override
Definition seadCafeRemoteControllerCafe.h:16
Definition seadControllerMgr.h:17
Definition seadController.h:28
Definition seadAssert.h:44
#define SEAD_RTTI_OVERRIDE(CLASS, BASE)
Definition seadRuntimeTypeInfo.h:96