Fixed framebuffer
This commit is contained in:
@@ -10,8 +10,8 @@ set(CMAKE_C_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
|
||||
|
||||
if(NOT DEFINED DUSK_TARGET_SYSTEM)
|
||||
# set(DUSK_TARGET_SYSTEM "linux")
|
||||
set(DUSK_TARGET_SYSTEM "psp")
|
||||
set(DUSK_TARGET_SYSTEM "linux")
|
||||
# set(DUSK_TARGET_SYSTEM "psp")
|
||||
endif()
|
||||
|
||||
# Prep cache
|
||||
|
@@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "display/render.h"
|
||||
#include "display/texture/texture.h"
|
||||
|
||||
#if RENDER_USE_FRAMEBUFFER
|
||||
|
@@ -25,6 +25,13 @@ int main(int argc, char *argv[]) {
|
||||
while(RENDER_RUNNING) {
|
||||
gameUpdate();
|
||||
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();
|
||||
|
Reference in New Issue
Block a user