summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/NetPlay/PadMapDialog.h
blob: 30d02665557b959e43ab0e8aa20a1fa6dc7318ac (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
// Copyright 2015 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.

#pragma once

#include <vector>
#include <wx/dialog.h>

#include "Core/NetPlayProto.h"

class NetPlayClient;
class NetPlayServer;
class Player;
class wxChoice;

class PadMapDialog final : public wxDialog
{
public:
  PadMapDialog(wxWindow* parent, NetPlayServer* server, NetPlayClient* client);

  PadMappingArray GetModifiedPadMappings() const;
  PadMappingArray GetModifiedWiimoteMappings() const;

private:
  void OnAdjust(wxCommandEvent& event);

  wxChoice* m_map_cbox[8];
  PadMappingArray m_pad_mapping;
  PadMappingArray m_wii_mapping;
  std::vector<const Player*> m_player_list;
};