SDL time
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
# Copyright (c) 2025 Dominic Masters
|
||||
#
|
||||
# This software is released under the MIT License.
|
||||
# https://opensource.org/licenses/MIT
|
||||
|
||||
# Sources
|
||||
target_sources(${DUSK_TARGET_NAME}
|
||||
PRIVATE
|
||||
render.c
|
||||
)
|
||||
|
||||
# Subdirs
|
||||
@@ -1,42 +0,0 @@
|
||||
/**
|
||||
* 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) {
|
||||
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) 2025 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "duskpsp.h"
|
||||
#include "display/renderbase.h"
|
||||
Reference in New Issue
Block a user