Move libPS4
[ps4-sdk.git] / libPS4 / source / pad.c
blobc4cda30fbb88b351c051fb8b7007d04035098945
1 #include "kernel.h"
2 #include "module.h"
4 #include "pad.h"
6 int (*scePadInit)(void);
7 int (*scePadOpen)(int userID, int, int, void *);
8 int (*scePadClose)(int handle);
9 int (*scePadRead)(int handle, void *data, int count);
10 int (*scePadReadState)(int handle, void *data);
12 void initPad(void) {
13 int libPad = sceKernelLoadStartModule("libScePad.sprx", 0, NULL, 0, 0, 0);
15 RESOLVE(libPad, scePadInit);
16 RESOLVE(libPad, scePadOpen);
17 RESOLVE(libPad, scePadClose);
18 RESOLVE(libPad, scePadRead);
19 RESOLVE(libPad, scePadReadState);
21 scePadInit();