mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
NetPlay: Return mapping arrays and player list vectors directly
Simplifies pad map dialog initialization
This commit is contained in:
@ -9,19 +9,24 @@
|
||||
|
||||
#include "Core/NetPlayProto.h"
|
||||
|
||||
class NetPlayClient;
|
||||
class NetPlayServer;
|
||||
class Player;
|
||||
class wxChoice;
|
||||
|
||||
class PadMapDialog final : public wxDialog
|
||||
{
|
||||
public:
|
||||
PadMapDialog(wxWindow* parent, PadMapping map[], PadMapping wiimotemap[], std::vector<const Player*>& player_list);
|
||||
PadMapDialog(wxWindow* parent, NetPlayServer* server, NetPlayClient* client);
|
||||
|
||||
PadMappingArray GetModifiedPadMappings() const;
|
||||
PadMappingArray GetModifiedWiimoteMappings() const;
|
||||
|
||||
private:
|
||||
void OnAdjust(wxCommandEvent& event);
|
||||
|
||||
wxChoice* m_map_cbox[8];
|
||||
PadMapping* const m_mapping;
|
||||
PadMapping* const m_wiimapping;
|
||||
std::vector<const Player*>& m_player_list;
|
||||
PadMappingArray m_pad_mapping;
|
||||
PadMappingArray m_wii_mapping;
|
||||
std::vector<const Player*> m_player_list;
|
||||
};
|
||||
|
Reference in New Issue
Block a user