src/platform/qt/MultiplayerController.h (view raw)
1/* Copyright (c) 2013-2015 Jeffrey Pfau
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6#ifndef QGBA_MULTIPLAYER_CONTROLLER
7#define QGBA_MULTIPLAYER_CONTROLLER
8
9extern "C" {
10#include "gba/sio/lockstep.h"
11}
12
13namespace QGBA {
14
15class GameController;
16
17class MultiplayerController {
18public:
19 MultiplayerController();
20 ~MultiplayerController();
21
22 bool attachGame(GameController*);
23 void detachGame(GameController*);
24
25private:
26 GBASIOLockstep m_lockstep;
27};
28
29}
30#endif