-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
133 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#pragma once | ||
#include <stdint.h> | ||
|
||
|
||
int sceGnmFlushGarlic(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,12 @@ | ||
#pragma once | ||
|
||
#include <stdint.h> | ||
#include <inttypes.h> | ||
#include <sce/types/pad.h> | ||
#include <sce/types/userservice.h> | ||
|
||
int scePadInit(void); | ||
int scePadOpen(int userID, int, int, void *); | ||
int scePadOpen(SceUserServiceUserId userId,int type,int index,uint8_t *param); | ||
int scePadClose(int handle); | ||
int scePadRead(int handle, void *data, int count); | ||
int scePadReadState(int handle, void *data); | ||
int scePadRead(int handle, ScePadData *data, int count); | ||
int scePadReadState(int handle, ScePadData *data); | ||
|
||
/* unreversed */ | ||
int64_t scePadResetOrientation(); | ||
int64_t scePadSetAngularVelocityDeadbandState(); | ||
int64_t scePadSetLightBar(); | ||
int64_t scePadSetMotionSensorState(); | ||
int64_t scePadSetTiltCorrectionState(); | ||
int64_t scePadSetVibration(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#pragma once | ||
|
||
#include <stdint.h> | ||
int sceSystemServiceHideSplashScreen(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#pragma once | ||
|
||
#include <stdint.h> | ||
|
||
typedef struct vec_float3 | ||
{ | ||
float x; | ||
float y; | ||
float z; | ||
}vec_float3; | ||
|
||
typedef struct vec_float4 | ||
{ | ||
float x; | ||
float y; | ||
float z; | ||
float w; | ||
}vec_float4; | ||
|
||
typedef struct ScePadData { | ||
unsigned int buttons; | ||
uint8_t lx; | ||
uint8_t ly; | ||
uint8_t rx; | ||
uint8_t ry; | ||
uint8_t l2; | ||
uint8_t r2; | ||
uint16_t padding; | ||
vec_float4 quat; | ||
vec_float3 vel; | ||
vec_float3 acell; | ||
uint8_t touch[24]; | ||
uint8_t connected; | ||
uint64_t timestamp; | ||
uint8_t ext[16]; | ||
uint8_t count; | ||
uint8_t unknown[15]; | ||
}ScePadData; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#pragma once | ||
|
||
#include <stdint.h> | ||
|
||
|
||
typedef int SceUserServiceUserId; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#pragma once | ||
|
||
#include <stdint.h> | ||
|
||
|
||
typedef struct SceVideoOutBufferAttribute { | ||
int32_t format; | ||
int32_t tmode; | ||
int32_t aspect; | ||
uint32_t width; | ||
uint32_t height; | ||
uint32_t pixelPitch; | ||
uint64_t reserved[2]; | ||
} SceVideoOutBufferAttribute; | ||
|
||
typedef struct SceVideoOutFlipStatus { | ||
uint64_t num; | ||
uint64_t ptime; | ||
uint64_t stime; | ||
int64_t flipArg; | ||
uint64_t reserved[2]; | ||
int32_t numGpuFlipPending; | ||
int32_t numFlipPending; | ||
int32_t currentBuffer; | ||
uint32_t reserved1; | ||
} SceVideoOutFlipStatus; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#pragma once | ||
|
||
#include <stdint.h> | ||
#include <sce/types/userservice.h> | ||
int sceUserServiceInitialize(int *params); | ||
int sceUserServiceTerminate(); | ||
int sceUserServiceGetInitialUser(SceUserServiceUserId *userId); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#pragma once | ||
|
||
#include <stdint.h> | ||
#include <types/kernel.h> | ||
#include <types/userservice.h> | ||
#include <types/videoout.h> | ||
|
||
|
||
|
||
int sceVideoOutOpen(SceUserServiceUserId userId, int type, int index, const void *param); | ||
int sceVideoOutClose(int handle); | ||
int sceVideoOutRegisterBuffers(int handle, int initialIndex, void * const *addr, int numBuf, const SceVideoOutBufferAttribute *attr); | ||
int sceVideoOutUnregisterBuffers(int handle, int indexAttr); | ||
int sceVideoOutSubmitFlip(int handle, int indexBuf, unsigned int flipMode, int64_t flipArg); | ||
void sceVideoOutSetBufferAttribute(SceVideoOutBufferAttribute *attr, unsigned int format, unsigned int tmode,unsigned int aspect, unsigned int width, unsigned int height, unsigned int pixelPitch); | ||
int sceVideoOutSetFlipRate(int handle, int flipRate); | ||
int sceVideoOutAddFlipEvent(SceKernelEqueue eq, int handle, void *data); | ||
int sceVideoOutGetFlipStatus(int handle, SceVideoOutFlipStatus *status); |