mgba/src/platform/psp2/psp2-context.h

30 lines
1.1 KiB
C
Raw Normal View History

/* 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
#include "psp2-common.h"
#include <mgba/core/interface.h>
#include <mgba-util/gui.h>
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);
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);
void mPSP2Unpaused(struct mGUIRunner* runner);
2016-02-26 08:52:42 +00:00
void mPSP2Draw(struct mGUIRunner* runner, bool faded);
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);
#endif