mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-13 09:35:23 -04:00
PS3: Fix to compile again
This commit is contained in:
parent
677edba22e
commit
ce6a8d2516
@ -17,8 +17,8 @@ include $(PS3DEV)/ppu_rules
|
||||
#---------------------------------------------------------------------------------
|
||||
TARGET := ClassiCube-PS3
|
||||
BUILD := build-ps3
|
||||
SOURCES := src
|
||||
INCLUDES :=
|
||||
SOURCES := src third_party/bearssl/src
|
||||
INCLUDES := third_party/bearssl/inc
|
||||
SHADERS := misc/ps3
|
||||
|
||||
TITLE := ClassiCube
|
||||
|
@ -82,7 +82,7 @@ And also runs on:
|
||||
* PSP - unfinished, rendering issues (can [download from here](https://www.classicube.net/download/psp), **untested on real hardware**)
|
||||
* PS Vita - unfinished, rendering issues (can [download from here](https://www.classicube.net/download/vita), **untested on real hardware**)
|
||||
* Xbox - unfinished, major rendering issues (can [download from here](https://www.classicube.net/download/xbox), **untested on real hardware**)
|
||||
* PS3 - unfinished, rendering issues (can [download from here](https://www.classicube.net/download/xbox), **untested on real hardware**)
|
||||
* PS3 - unfinished, rendering issues (can [download from here](https://www.classicube.net/download/ps3), **untested on real hardware**)
|
||||
* Nintendo 64 - unfinished, major rendering issues
|
||||
|
||||
# Compiling
|
||||
|
@ -531,7 +531,7 @@ void Gfx_UnlockVb(GfxResourceID vb) {
|
||||
}
|
||||
|
||||
|
||||
static GfxResourceID Gfx_AllocDynamicVb(VertexFormat fmt, int maxVertices)
|
||||
static GfxResourceID Gfx_AllocDynamicVb(VertexFormat fmt, int maxVertices) {
|
||||
return rsxMemalign(128, maxVertices * strideSizes[fmt]);
|
||||
}
|
||||
|
||||
|
@ -12,11 +12,15 @@
|
||||
#include "ExtMath.h"
|
||||
#include "Logger.h"
|
||||
#include <io/pad.h>
|
||||
#include <io/kb.h>
|
||||
#include <sysutil/sysutil.h>
|
||||
#include <sysutil/video.h>
|
||||
|
||||
static cc_bool launcherMode;
|
||||
static padInfo pad_info;
|
||||
static padData pad_data;
|
||||
static KbInfo kb_info;
|
||||
static KbData kb_data;
|
||||
|
||||
struct _DisplayData DisplayInfo;
|
||||
struct _WinData WindowInfo;
|
||||
@ -57,7 +61,8 @@ void Window_Init(void) {
|
||||
DisplayInfo.ContentOffsetX = 10;
|
||||
DisplayInfo.ContentOffsetY = 10;
|
||||
|
||||
ioPadInit(7);
|
||||
ioPadInit(MAX_PORT_NUM);
|
||||
//ioKbInit(MAX_KB_PORT_NUM);
|
||||
}
|
||||
|
||||
void Window_Create2D(int width, int height) {
|
||||
@ -133,13 +138,19 @@ static void ProcessPadInput(double delta, padData* pad) {
|
||||
}
|
||||
|
||||
void Window_ProcessEvents(double delta) {
|
||||
ioPadGetInfo(&pad_info);
|
||||
Input.JoystickMovement = false;
|
||||
|
||||
ioPadGetInfo(&pad_info);
|
||||
if (pad_info.status[0]) {
|
||||
ioPadGetData(0, &pad_data);
|
||||
ProcessPadInput(delta, &pad_data);
|
||||
}
|
||||
|
||||
//ioKbGetInfo(&kb_info);
|
||||
//if (kb_info.status[0]) {
|
||||
// int RES = ioKbRead(0, &kb_data);
|
||||
// Platform_Log1("RES: %i", &RES);
|
||||
//}
|
||||
}
|
||||
|
||||
void Cursor_SetPosition(int x, int y) { } // Makes no sense for PS Vita
|
||||
|
Loading…
x
Reference in New Issue
Block a user