controller_patcher/source/utils/CPRetainVars.hpp

77 lines
2.5 KiB
C++
Raw Permalink 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_
2018-06-17 20:33:39 +02:00
#include <controller_patcher/ControllerPatcherDefs.h>
#include <nsyshid/hid.h>
extern ControllerMapping gControllerMapping;
2016-04-25 20:23:58 +02:00
2018-06-20 15:07:15 +02:00
extern uint8_t gConfig_done;
extern uint8_t gButtonRemappingConfigDone;
2016-04-25 20:23:58 +02:00
2018-06-20 15:07:15 +02:00
extern uint32_t gHIDAttached;
extern uint32_t gHIDCurrentDevice;
2016-04-25 20:23:58 +02:00
extern HIDClient gHIDClient;
2018-06-20 15:07:15 +02:00
extern uint16_t gHIDRegisteredDevices;
extern HID_DEVICE_DATA gHID_Devices[gHIDMaxDevices];
2016-04-25 20:23:58 +02:00
2018-06-20 15:07:15 +02:00
extern uint8_t gHID_Mouse_Mode;
2016-04-25 20:23:58 +02:00
2018-06-20 15:07:15 +02:00
extern uint8_t gMouseModeCoolDown;
2018-06-20 15:07:15 +02:00
extern uint32_t gGamePadValues[CONTRPS_MAX_VALUE];
2018-06-20 15:07:15 +02:00
extern uint8_t config_controller[gHIDMaxDevices][CONTRPS_MAX_VALUE][2];
extern uint32_t config_controller_hidmask[gHIDMaxDevices];
2018-06-20 15:07:15 +02:00
extern uint32_t gHID_LIST_GC;
extern uint32_t gHID_LIST_DS3;
extern uint32_t gHID_LIST_DS4;
extern uint32_t gHID_LIST_KEYBOARD;
extern uint32_t gHID_LIST_SWITCH_PRO;
extern uint32_t gHID_LIST_MOUSE;
extern uint16_t gGamePadSlot;
2018-06-20 15:07:15 +02:00
extern uint16_t gHID_SLOT_GC;
extern uint16_t gHID_SLOT_KEYBOARD;
extern uint16_t gMouseSlot;
2016-04-25 20:23:58 +02:00
2018-06-20 15:07:15 +02:00
extern uint8_t gOriginalDimState;
extern uint8_t gOriginalAPDState;
2018-06-20 15:07:15 +02:00
extern uint16_t gNetworkController[gHIDMaxDevices][HID_MAX_PADS_COUNT][4];
extern int32_t gHIDNetworkClientID;
2018-06-20 15:07:15 +02:00
extern uint8_t gUsedProtocolVersion;
extern WPADConnectCallback gWPADConnectCallback[4];
extern WPADConnectCallback gKPADConnectCallback[4];
extern WPADExtensionCallback gExtensionCallback[4];
extern WPADSamplingCallback gSamplingCallback;
2018-06-20 15:07:15 +02:00
extern uint8_t gCallbackCooldown;
extern uint8_t gGlobalRumbleActivated;
extern uint8_t gNetworkControllerActivated;
2018-06-20 15:07:15 +02:00
extern uint32_t gUDPClientip;
extern ControllerMappingPADInfo* gProPadInfo[4];
2016-04-25 20:23:58 +02:00
#endif // CP_RETAINS_VARS_H_