2015-07-28 03:36:17 +00:00
|
|
|
/* Copyright (c) 2013-2015 Jeffrey Pfau
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef PSP2_CONTEXT_H
|
|
|
|
#define PSP2_CONTEXT_H
|
|
|
|
|
2015-07-28 07:59:28 +00:00
|
|
|
#include "psp2-common.h"
|
2016-12-31 01:00:22 +00:00
|
|
|
#include <mgba/core/interface.h>
|
|
|
|
#include <mgba-util/gui.h>
|
2015-07-28 03:36:17 +00:00
|
|
|
|
2016-02-07 21:47:12 +00:00
|
|
|
struct mGUIRunner;
|
2016-02-26 08:52:42 +00:00
|
|
|
void mPSP2Setup(struct mGUIRunner* runner);
|
|
|
|
void mPSP2Teardown(struct mGUIRunner* runner);
|
2016-08-16 05:15:45 +00:00
|
|
|
void mPSP2MapKey(struct mInputMap* map, int pspKey, int key);
|
2015-07-28 03:36:17 +00:00
|
|
|
|
2016-02-26 08:52:42 +00:00
|
|
|
void mPSP2LoadROM(struct mGUIRunner* runner);
|
|
|
|
void mPSP2UnloadROM(struct mGUIRunner* runner);
|
|
|
|
void mPSP2PrepareForFrame(struct mGUIRunner* runner);
|
2016-08-09 03:59:17 +00:00
|
|
|
void mPSP2Paused(struct mGUIRunner* runner);
|
2016-08-03 05:26:08 +00:00
|
|
|
void mPSP2Unpaused(struct mGUIRunner* runner);
|
2016-02-26 08:52:42 +00:00
|
|
|
void mPSP2Draw(struct mGUIRunner* runner, bool faded);
|
2016-09-07 08:06:54 +00:00
|
|
|
void mPSP2DrawScreenshot(struct mGUIRunner* runner, const color_t* pixels, unsigned width, unsigned height, bool faded);
|
2016-02-26 08:52:42 +00:00
|
|
|
void mPSP2IncrementScreenMode(struct mGUIRunner* runner);
|
2016-08-17 06:24:07 +00:00
|
|
|
void mPSP2SetFrameLimiter(struct mGUIRunner* runner, bool limit);
|
2016-02-26 08:52:42 +00:00
|
|
|
uint16_t mPSP2PollInput(struct mGUIRunner* runner);
|
2015-07-28 03:36:17 +00:00
|
|
|
|
|
|
|
#endif
|