controller_patcher/source/utils/CPRetainVars.hpp

78 lines
2.4 KiB
C++
Raw Normal View History

/****************************************************************************
* Copyright (C) 2016,2017 Maschell
*
* 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_
2017-10-29 09:34:47 +01:00
#include <dynamic_libs/syshid_functions.h>
#include <dynamic_libs/padscore_functions.h>
#include "../ControllerPatcherDefs.h"
extern ControllerMapping gControllerMapping;
2016-04-25 20:23:58 +02:00
extern u8 gConfig_done;
extern u8 gButtonRemappingConfigDone;
2016-04-25 20:23:58 +02:00
extern u32 gHIDAttached;
extern u32 gHIDCurrentDevice;
2016-04-25 20:23:58 +02:00
extern HIDClient gHIDClient;
extern u16 gHIDRegisteredDevices;
extern HID_DEVICE_DATA gHID_Devices[gHIDMaxDevices];
2016-04-25 20:23:58 +02:00
extern u8 gHID_Mouse_Mode;
extern u8 gMouseModeCoolDown;
extern u32 gGamePadValues[CONTRPS_MAX_VALUE];
extern u8 config_controller[gHIDMaxDevices][CONTRPS_MAX_VALUE][2];
extern u32 config_controller_hidmask[gHIDMaxDevices];
extern u32 gHID_LIST_GC;
extern u32 gHID_LIST_DS3;
extern u32 gHID_LIST_DS4;
extern u32 gHID_LIST_KEYBOARD;
extern u32 gHID_LIST_SWITCH_PRO;
extern u32 gHID_LIST_MOUSE;
extern u16 gGamePadSlot;
extern u16 gHID_SLOT_GC;
extern u16 gHID_SLOT_KEYBOARD;
extern u16 gMouseSlot;
2016-04-25 20:23:58 +02:00
extern u8 gOriginalDimState;
extern u8 gOriginalAPDState;
extern u16 gNetworkController[gHIDMaxDevices][HID_MAX_PADS_COUNT][4];
extern s32 gHIDNetworkClientID;
extern u8 gUsedProtocolVersion;
extern wpad_connect_callback_t gWPADConnectCallback[4];
extern wpad_connect_callback_t gKPADConnectCallback[4];
extern wpad_extension_callback_t gExtensionCallback[4];
extern wpad_sampling_callback_t gSamplingCallback;
extern u8 gCallbackCooldown;
extern u8 gGlobalRumbleActivated;
extern u8 gNetworkControllerActivated;
extern u32 gUDPClientip;
extern ControllerMappingPADInfo* gProPadInfo[4];
2016-04-25 20:23:58 +02:00
#endif // CP_RETAINS_VARS_H_