controller_patcher/cp_retain_vars.c
2016-04-25 20:23:58 +02:00

22 lines
884 B
C

#include <gctypes.h>
#include "dynamic_libs/syshid_functions.h"
#include "controller_patcher/controller_patcher.h"
u8 config_done __attribute__((section(".data"))) = 0;
u8 gHIDSetupDone __attribute__((section(".data"))) = 0;
u8 gHIDAttached __attribute__((section(".data"))) = 0;
u8 gHIDCurrentDevice __attribute__((section(".data"))) = 0;
HIDClient gHIDClient __attribute__((section(".data")));
HID_DEVICE_DATA gHID_Devices[CONTRPD_MAX_VALUE] __attribute__((section(".data")));
HID_Mouse gHID_Mouse __attribute__((section(".data")));
u8 gHID_Mouse_Mode __attribute__((section(".data"))) = HID_MOUSE_MODE_TOUCH;
u8 config_controller[CONTRPD_MAX_VALUE][CONTRPS_MAX_VALUE][2] __attribute__((section(".data")));
s8 config_controller_list[CONTRPD_MAX_VALUE] __attribute__((section(".data")));
u32 config_controller_data_ptr[CONTRPD_MAX_VALUE][4] __attribute__((section(".data")));