all repos — mgba @ e6377f2e6a8902a780f8caa4d40e1768963eb12d

mGBA Game Boy Advance Emulator

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
25	int attached();
26
27private:
28	GBASIOLockstep m_lockstep;
29};
30
31}
32#endif