summaryrefslogtreecommitdiffstats
path: root/src/citra_qt/config/controller_config.hxx
blob: 451593de1d9132e1b326135fb63214accd1acfd6 (plain) (blame)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Copyright 2014 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.

#ifndef _CONTROLLER_CONFIG_HXX_
#define _CONTROLLER_CONFIG_HXX_

#include <QDialog>

//#include "ui_controller_config.h"

/* TODO(bunnei): ImplementMe

#include "config.h"

class GControllerConfig : public QWidget
{
    Q_OBJECT

public:
    GControllerConfig(common::Config::ControllerPort* initial_config, QWidget* parent = NULL);

    const common::Config::ControllerPort& GetControllerConfig(int index) const { return config[index]; }

signals:
    void ActivePortChanged(const common::Config::ControllerPort&);

public slots:
    void OnKeyConfigChanged(common::Config::Control id, int key, const QString& name);

private:
    int GetActiveController();
    bool InputSourceJoypad();

    Ui::ControllerConfig ui;
    common::Config::ControllerPort config[4];
};

class GControllerConfigDialog : public QDialog
{
    Q_OBJECT

public:
    GControllerConfigDialog(common::Config::ControllerPort* controller_ports, QWidget* parent = NULL);

public slots:
    void EnableChanges();

private:
    GControllerConfig* config_widget;
    common::Config::ControllerPort* config_ptr;
};

*/

#endif  // _CONTROLLER_CONFIG_HXX_