Fixed framebuffer

This commit is contained in:
2025-08-15 21:45:21 -05:00
parent 81ed15b171
commit 69acbd017c
3 changed files with 10 additions and 2 deletions

View File

@@ -10,8 +10,8 @@ set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
if(NOT DEFINED DUSK_TARGET_SYSTEM) if(NOT DEFINED DUSK_TARGET_SYSTEM)
# set(DUSK_TARGET_SYSTEM "linux") set(DUSK_TARGET_SYSTEM "linux")
set(DUSK_TARGET_SYSTEM "psp") # set(DUSK_TARGET_SYSTEM "psp")
endif() endif()
# Prep cache # Prep cache

View File

@@ -6,6 +6,7 @@
*/ */
#pragma once #pragma once
#include "display/render.h"
#include "display/texture/texture.h" #include "display/texture/texture.h"
#if RENDER_USE_FRAMEBUFFER #if RENDER_USE_FRAMEBUFFER

View File

@@ -25,6 +25,13 @@ int main(int argc, char *argv[]) {
while(RENDER_RUNNING) { while(RENDER_RUNNING) {
gameUpdate(); gameUpdate();
mainError(renderDraw()); mainError(renderDraw());
if(inputPressed(INPUT_BIND_UP)) consolePrint("Up pressed");
if(inputPressed(INPUT_BIND_DOWN)) consolePrint("Down pressed");
if(inputPressed(INPUT_BIND_LEFT)) consolePrint("Left pressed");
if(inputPressed(INPUT_BIND_RIGHT)) consolePrint("Right pressed");
if(inputPressed(INPUT_BIND_ACTION)) consolePrint("Action pressed");
if(inputPressed(INPUT_BIND_CANCEL)) consolePrint("Cancel pressed");
} }
gameDispose(); gameDispose();