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 "util/gui.h"
11
12struct mGUIRunner;
13void mPSP2Setup(struct mGUIRunner* runner);
14void mPSP2Teardown(struct mGUIRunner* runner);
15void mPSP2MapKey(struct mInputMap* map, int pspKey, int key);
16
17void mPSP2LoadROM(struct mGUIRunner* runner);
18void mPSP2UnloadROM(struct mGUIRunner* runner);
19void mPSP2PrepareForFrame(struct mGUIRunner* runner);
20void mPSP2Paused(struct mGUIRunner* runner);
21void mPSP2Unpaused(struct mGUIRunner* runner);
22void mPSP2Draw(struct mGUIRunner* runner, bool faded);
23void mPSP2DrawScreenshot(struct mGUIRunner* runner, const uint32_t* pixels, unsigned width, unsigned height, bool faded);
24void mPSP2IncrementScreenMode(struct mGUIRunner* runner);
25uint16_t mPSP2PollInput(struct mGUIRunner* runner);
26
27#endif