Add psp
This commit is contained in:
42
src/duskpsp/display/render.c
Normal file
42
src/duskpsp/display/render.c
Normal file
@@ -0,0 +1,42 @@
|
||||
/**
|
||||
* Copyright (c) 2025 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#include "render.h"
|
||||
#include "input.h"
|
||||
|
||||
void renderInit(void) {
|
||||
pspDebugScreenInit();
|
||||
}
|
||||
|
||||
void renderDraw(void) {
|
||||
sceDisplayWaitVblankStart();
|
||||
pspDebugScreenSetXY(0, 2);
|
||||
|
||||
pspDebugScreenPrintf("Checking buttons \n");
|
||||
if(inputIsDown(INPUT_BIND_UP)) {
|
||||
pspDebugScreenPrintf("Up pressed\n");
|
||||
}
|
||||
if(inputIsDown(INPUT_BIND_DOWN)) {
|
||||
pspDebugScreenPrintf("Down pressed\n");
|
||||
}
|
||||
if(inputIsDown(INPUT_BIND_LEFT)) {
|
||||
pspDebugScreenPrintf("Left pressed\n");
|
||||
}
|
||||
if(inputIsDown(INPUT_BIND_RIGHT)) {
|
||||
pspDebugScreenPrintf("Right pressed\n");
|
||||
}
|
||||
if(inputIsDown(INPUT_BIND_ACTION)) {
|
||||
pspDebugScreenPrintf("Action pressed\n");
|
||||
}
|
||||
if(inputIsDown(INPUT_BIND_CANCEL)) {
|
||||
pspDebugScreenPrintf("Cancel pressed\n");
|
||||
}
|
||||
}
|
||||
|
||||
void renderDispose(void) {
|
||||
|
||||
}
|
Reference in New Issue
Block a user