all repos — mgba @ e33f1d37f23b4e38cd01e23bf80ad658c69badd9

mGBA Game Boy Advance Emulator

src/platform/psp2/psp2-context.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 PSP2_CONTEXT_H
 7#define PSP2_CONTEXT_H
 8
 9#include "psp2-common.h"
10#include <mgba/core/interface.h>
11#include <mgba-util/gui.h>
12
13struct mGUIRunner;
14void mPSP2Setup(struct mGUIRunner* runner);
15void mPSP2Teardown(struct mGUIRunner* runner);
16void mPSP2MapKey(struct mInputMap* map, int pspKey, int key);
17
18void mPSP2LoadROM(struct mGUIRunner* runner);
19void mPSP2UnloadROM(struct mGUIRunner* runner);
20void mPSP2PrepareForFrame(struct mGUIRunner* runner);
21void mPSP2Paused(struct mGUIRunner* runner);
22void mPSP2Unpaused(struct mGUIRunner* runner);
23void mPSP2Draw(struct mGUIRunner* runner, bool faded);
24void mPSP2DrawScreenshot(struct mGUIRunner* runner, const color_t* pixels, unsigned width, unsigned height, bool faded);
25void mPSP2IncrementScreenMode(struct mGUIRunner* runner);
26void mPSP2SetFrameLimiter(struct mGUIRunner* runner, bool limit);
27uint16_t mPSP2PollInput(struct mGUIRunner* runner);
28bool mPSP2SystemPoll(struct mGUIRunner* runner);
29
30#endif