NetPlay: Sync power button event

This fixes the deadlock on shutdown when Wii Remotes are in use.
This commit is contained in:
Techjar 2018-11-10 22:37:49 -05:00
commit ef89e4e70c
7 changed files with 44 additions and 0 deletions

View file

@ -43,6 +43,7 @@ public:
virtual void OnMsgChangeGame(const std::string& filename) = 0;
virtual void OnMsgStartGame() = 0;
virtual void OnMsgStopGame() = 0;
virtual void OnMsgPowerButton() = 0;
virtual void OnPadBufferChanged(u32 buffer) = 0;
virtual void OnHostInputAuthorityChanged(bool enabled) = 0;
virtual void OnDesync(u32 frame, const std::string& player) = 0;
@ -102,6 +103,7 @@ public:
bool ChangeGame(const std::string& game);
void SendChatMessage(const std::string& msg);
void RequestStopGame();
void SendPowerButtonEvent();
// Send and receive pads values
bool WiimoteUpdate(int _number, u8* data, const u8 size, u8 reporting_mode);