mirror of
https://github.com/Maschell/dynamic_libs.git
synced 2024-11-19 03:09:24 +01:00
commit
ef06a0e3f2
@ -1,5 +1,5 @@
|
|||||||
#ifndef FS_DEFS_H
|
#ifndef FS_DEFS_H
|
||||||
#define FS_DEFS_H
|
#define FS_DEFS_H
|
||||||
|
|
||||||
#include <gctypes.h>
|
#include <gctypes.h>
|
||||||
|
|
||||||
@ -57,5 +57,5 @@ typedef struct
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* FS_DEFS_H */
|
#endif /* FS_DEFS_H */
|
||||||
|
|
||||||
|
@ -166,7 +166,7 @@ void _os_find_export(u32 handle, const char *funcName, void *funcPointer)
|
|||||||
*/
|
*/
|
||||||
char buf[256], *bufp = buf;
|
char buf[256], *bufp = buf;
|
||||||
const char a[] = "Function ", b[] = " is NULL", *p;
|
const char a[] = "Function ", b[] = " is NULL", *p;
|
||||||
int i;
|
unsigned int i;
|
||||||
|
|
||||||
for (i = 0; i < sizeof(a) - 1; i++)
|
for (i = 0; i < sizeof(a) - 1; i++)
|
||||||
*bufp++ = a[i];
|
*bufp++ = a[i];
|
||||||
|
@ -32,30 +32,30 @@ extern u32 syshid_handle;
|
|||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
u32 handle;
|
u32 handle;
|
||||||
u32 physical_device_inst;
|
u32 physical_device_inst;
|
||||||
unsigned short vid;
|
unsigned short vid;
|
||||||
unsigned short pid;
|
unsigned short pid;
|
||||||
unsigned char interface_index;
|
unsigned char interface_index;
|
||||||
unsigned char sub_class;
|
unsigned char sub_class;
|
||||||
unsigned char protocol;
|
unsigned char protocol;
|
||||||
|
|
||||||
unsigned short max_packet_size_rx;
|
unsigned short max_packet_size_rx;
|
||||||
unsigned short max_packet_size_tx;
|
unsigned short max_packet_size_tx;
|
||||||
|
|
||||||
} HIDDevice;
|
} HIDDevice;
|
||||||
|
|
||||||
typedef struct _HIDClient HIDClient;
|
typedef struct _HIDClient HIDClient;
|
||||||
|
|
||||||
#define HID_DEVICE_DETACH 0
|
#define HID_DEVICE_DETACH 0
|
||||||
#define HID_DEVICE_ATTACH 1
|
#define HID_DEVICE_ATTACH 1
|
||||||
|
|
||||||
typedef s32 (*HIDAttachCallback)(HIDClient *p_hc,HIDDevice *p_hd,u32 attach);
|
typedef s32 (*HIDAttachCallback)(HIDClient *p_hc,HIDDevice *p_hd,u32 attach);
|
||||||
|
|
||||||
struct _HIDClient
|
struct _HIDClient
|
||||||
{
|
{
|
||||||
HIDClient *next;
|
HIDClient *next;
|
||||||
HIDAttachCallback attach_cb;
|
HIDAttachCallback attach_cb;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef void (*HIDCallback)(u32 handle,s32 error,unsigned char *p_buffer,u32 bytes_transferred,void *p_user);
|
typedef void (*HIDCallback)(u32 handle,s32 error,unsigned char *p_buffer,u32 bytes_transferred,void *p_user);
|
||||||
|
@ -99,9 +99,9 @@ typedef struct
|
|||||||
VPADTPData tpdata1; /* Modified touchscreen data 1 */
|
VPADTPData tpdata1; /* Modified touchscreen data 1 */
|
||||||
VPADTPData tpdata2; /* Modified touchscreen data 2 */
|
VPADTPData tpdata2; /* Modified touchscreen data 2 */
|
||||||
char unknown6a[0xa0 - 0x6a];
|
char unknown6a[0xa0 - 0x6a];
|
||||||
uint8_t volume;
|
u8 volume;
|
||||||
uint8_t battery; /* 0 to 6 */
|
u8 battery; /* 0 to 6 */
|
||||||
uint8_t unk_volume; /* One less than volume */
|
u8 unk_volume; /* One less than volume */
|
||||||
char unknowna4[0xac - 0xa4];
|
char unknowna4[0xac - 0xa4];
|
||||||
} VPADData;
|
} VPADData;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user