2016-08-03 20:46:46 +02:00
|
|
|
/****************************************************************************
|
2017-03-30 17:53:36 +02:00
|
|
|
* Copyright (C) 2016,2017 Maschell
|
2016-08-03 20:46:46 +02:00
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
****************************************************************************/
|
2016-04-25 20:23:58 +02:00
|
|
|
#ifndef CP_RETAINS_VARS_H_
|
|
|
|
#define CP_RETAINS_VARS_H_
|
|
|
|
|
|
|
|
#include "dynamic_libs/syshid_functions.h"
|
2017-04-13 10:14:41 +02:00
|
|
|
#include "dynamic_libs/padscore_functions.h"
|
2017-03-30 17:53:36 +02:00
|
|
|
#include "../patcher/ControllerPatcherDefs.h"
|
|
|
|
|
|
|
|
extern ControllerMapping gControllerMapping;
|
2016-04-25 20:23:58 +02:00
|
|
|
|
2016-08-03 20:46:46 +02:00
|
|
|
extern u8 gConfig_done;
|
|
|
|
extern u8 gButtonRemappingConfigDone;
|
2016-04-25 20:23:58 +02:00
|
|
|
|
2017-04-10 17:15:26 +02:00
|
|
|
extern u32 gHIDAttached;
|
|
|
|
extern u32 gHIDCurrentDevice;
|
2016-04-25 20:23:58 +02:00
|
|
|
extern HIDClient gHIDClient;
|
|
|
|
|
2016-08-03 20:46:46 +02:00
|
|
|
extern u16 gHIDRegisteredDevices;
|
|
|
|
|
|
|
|
extern HID_DEVICE_DATA gHID_Devices[gHIDMaxDevices];
|
2016-04-25 20:23:58 +02:00
|
|
|
|
|
|
|
extern u8 gHID_Mouse_Mode;
|
|
|
|
|
2016-08-03 20:46:46 +02:00
|
|
|
extern u32 gGamePadValues[CONTRPS_MAX_VALUE];
|
|
|
|
|
|
|
|
extern u8 config_controller[gHIDMaxDevices][CONTRPS_MAX_VALUE][2];
|
2017-04-10 17:15:26 +02:00
|
|
|
extern u32 config_controller_hidmask[gHIDMaxDevices];
|
2016-08-03 20:46:46 +02:00
|
|
|
|
2017-04-10 17:15:26 +02:00
|
|
|
extern u32 gHID_LIST_GC;
|
|
|
|
extern u32 gHID_LIST_DS3;
|
|
|
|
extern u32 gHID_LIST_KEYBOARD;
|
|
|
|
extern u32 gHID_LIST_MOUSE;
|
2016-08-03 20:46:46 +02:00
|
|
|
extern u16 gGamePadSlot;
|
|
|
|
|
|
|
|
extern u16 gHID_SLOT_GC;
|
|
|
|
extern u16 gHID_SLOT_KEYBOARD;
|
|
|
|
extern u16 gMouseSlot;
|
2016-04-25 20:23:58 +02:00
|
|
|
|
2017-03-30 17:53:36 +02:00
|
|
|
extern u8 gOriginalDimState;
|
|
|
|
extern u8 gOriginalAPDState;
|
|
|
|
|
|
|
|
extern u16 gNetworkController[gHIDMaxDevices][HID_MAX_PADS_COUNT][4];
|
|
|
|
extern s32 gHIDNetworkClientID;
|
|
|
|
|
2017-04-10 15:39:58 +02:00
|
|
|
extern u8 gUsedProtocolVersion;
|
|
|
|
|
2017-04-14 12:59:40 +02:00
|
|
|
extern wpad_connect_callback_t gWPADConnectCallback[4];
|
|
|
|
extern wpad_connect_callback_t gKPADConnectCallback[4];
|
2017-04-13 10:14:41 +02:00
|
|
|
extern wpad_extension_callback_t gExtensionCallback[4];
|
|
|
|
extern u8 gCallbackCooldown;
|
|
|
|
|
2017-04-13 15:30:40 +02:00
|
|
|
extern u32 gUDPClientip;
|
|
|
|
|
2016-04-25 20:23:58 +02:00
|
|
|
#endif // CP_RETAINS_VARS_H_
|