2019-11-23 20:27:39 +08:00
|
|
|
/****************************************************************************
|
|
|
|
Copyright (c) 2014 cocos2d-x.org
|
|
|
|
Copyright (c) 2014-2016 Chukong Technologies Inc.
|
|
|
|
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
|
2021-12-31 12:12:40 +08:00
|
|
|
|
2022-10-01 16:24:52 +08:00
|
|
|
https://axmolengine.github.io/
|
2021-12-31 12:12:40 +08:00
|
|
|
|
2019-11-23 20:27:39 +08:00
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
|
|
in the Software without restriction, including without limitation the rights
|
|
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
|
|
furnished to do so, subject to the following conditions:
|
2021-12-31 12:12:40 +08:00
|
|
|
|
2019-11-23 20:27:39 +08:00
|
|
|
The above copyright notice and this permission notice shall be included in
|
|
|
|
all copies or substantial portions of the Software.
|
2021-12-31 12:12:40 +08:00
|
|
|
|
2019-11-23 20:27:39 +08:00
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
THE SOFTWARE.
|
|
|
|
****************************************************************************/
|
|
|
|
|
2023-06-11 13:08:08 +08:00
|
|
|
#include "base/Controller.h"
|
|
|
|
#include "platform/PlatformConfig.h"
|
2022-07-16 10:43:05 +08:00
|
|
|
#if (AX_TARGET_PLATFORM == AX_PLATFORM_IOS || AX_TARGET_PLATFORM == AX_PLATFORM_MAC)
|
2019-11-23 20:27:39 +08:00
|
|
|
|
2023-06-11 13:08:08 +08:00
|
|
|
# include "base/Macros.h"
|
|
|
|
# include "base/EventDispatcher.h"
|
|
|
|
# include "base/EventController.h"
|
|
|
|
# include "base/EventListenerController.h"
|
|
|
|
# include "base/Director.h"
|
|
|
|
# include "2d/Label.h"
|
2019-11-23 20:27:39 +08:00
|
|
|
|
2021-12-31 12:12:40 +08:00
|
|
|
# import <GameController/GameController.h>
|
2019-11-23 20:27:39 +08:00
|
|
|
|
|
|
|
typedef void (^GCControllerConnectionBlock)(GCController* controller);
|
|
|
|
typedef void (^GCControllerDisconnectionBlock)(GCController* controller);
|
|
|
|
|
2021-12-31 12:12:40 +08:00
|
|
|
@interface GCControllerConnectionEventHandler : NSObject {
|
2019-11-23 20:27:39 +08:00
|
|
|
}
|
|
|
|
|
2021-12-31 12:12:40 +08:00
|
|
|
@property(copy) GCControllerConnectionBlock _connectionBlock;
|
|
|
|
@property(copy) GCControllerDisconnectionBlock _disconnectionBlock;
|
2019-11-23 20:27:39 +08:00
|
|
|
|
2021-12-31 12:12:40 +08:00
|
|
|
+ (GCControllerConnectionEventHandler*)getInstance;
|
|
|
|
+ (void)destroyInstance;
|
2019-11-23 20:27:39 +08:00
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation GCControllerConnectionEventHandler
|
|
|
|
|
2021-12-31 11:00:35 +08:00
|
|
|
static GCControllerConnectionEventHandler* __instance = nil;
|
2021-12-28 21:27:32 +08:00
|
|
|
|
2021-12-31 12:12:40 +08:00
|
|
|
+ (GCControllerConnectionEventHandler*)getInstance
|
|
|
|
{
|
|
|
|
|
2019-11-23 20:27:39 +08:00
|
|
|
if (__instance == nil)
|
|
|
|
{
|
|
|
|
__instance = [[GCControllerConnectionEventHandler alloc] init];
|
|
|
|
}
|
|
|
|
return __instance;
|
|
|
|
}
|
|
|
|
|
2021-12-31 12:12:40 +08:00
|
|
|
+ (void)destroyInstance
|
|
|
|
{
|
2019-11-23 20:27:39 +08:00
|
|
|
if (__instance)
|
|
|
|
{
|
|
|
|
[__instance release];
|
|
|
|
__instance = nil;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-31 12:12:40 +08:00
|
|
|
- (void)observerConnection:(GCControllerConnectionBlock)connectBlock
|
|
|
|
disconnection:(GCControllerDisconnectionBlock)disconnectBlock
|
|
|
|
{
|
|
|
|
self._connectionBlock = connectBlock;
|
2019-11-23 20:27:39 +08:00
|
|
|
self._disconnectionBlock = disconnectBlock;
|
|
|
|
|
2021-12-31 12:12:40 +08:00
|
|
|
[[NSNotificationCenter defaultCenter] addObserver:self
|
|
|
|
selector:@selector(onControllerConnected:)
|
|
|
|
name:GCControllerDidConnectNotification
|
|
|
|
object:nil];
|
|
|
|
[[NSNotificationCenter defaultCenter] addObserver:self
|
|
|
|
selector:@selector(onControllerDisconnected:)
|
|
|
|
name:GCControllerDidDisconnectNotification
|
|
|
|
object:nil];
|
2019-11-23 20:27:39 +08:00
|
|
|
}
|
|
|
|
|
2021-12-31 12:12:40 +08:00
|
|
|
- (void)dealloc
|
|
|
|
{
|
2019-11-23 20:27:39 +08:00
|
|
|
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
|
|
|
|
|
|
|
// Have to reset 'copy' property to nil value to avoid memory leak.
|
2021-12-31 12:12:40 +08:00
|
|
|
self._connectionBlock = nil;
|
2019-11-23 20:27:39 +08:00
|
|
|
self._disconnectionBlock = nil;
|
|
|
|
|
|
|
|
[super dealloc];
|
|
|
|
}
|
|
|
|
|
2021-12-31 12:12:40 +08:00
|
|
|
- (void)onControllerConnected:(NSNotification*)connectedNotification
|
|
|
|
{
|
|
|
|
GCController* controller = (GCController*)[connectedNotification object];
|
|
|
|
|
2019-11-23 20:27:39 +08:00
|
|
|
self._connectionBlock(controller);
|
|
|
|
}
|
|
|
|
|
2021-12-31 12:12:40 +08:00
|
|
|
- (void)onControllerDisconnected:(NSNotification*)connectedNotification
|
|
|
|
{
|
|
|
|
|
|
|
|
GCController* controller = (GCController*)[connectedNotification object];
|
2019-11-23 20:27:39 +08:00
|
|
|
self._disconnectionBlock(controller);
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
NS_AX_BEGIN
|
2019-11-23 20:27:39 +08:00
|
|
|
|
|
|
|
class ControllerImpl
|
|
|
|
{
|
|
|
|
public:
|
2021-12-31 12:12:40 +08:00
|
|
|
ControllerImpl(Controller* controller) : _controller(controller), _gcController(nil) {}
|
|
|
|
|
2019-11-23 20:27:39 +08:00
|
|
|
Controller* _controller;
|
|
|
|
GCController* _gcController;
|
|
|
|
};
|
|
|
|
|
|
|
|
void Controller::startDiscoveryController()
|
|
|
|
{
|
2021-12-31 12:12:40 +08:00
|
|
|
if (NSClassFromString(@"GCController") == nil)
|
|
|
|
{
|
2019-11-23 20:27:39 +08:00
|
|
|
return;
|
|
|
|
}
|
2021-12-31 12:12:40 +08:00
|
|
|
[GCController startWirelessControllerDiscoveryWithCompletionHandler:nil];
|
|
|
|
|
|
|
|
[[GCControllerConnectionEventHandler getInstance]
|
|
|
|
observerConnection:^(GCController* gcController) {
|
|
|
|
auto controller = new Controller();
|
|
|
|
controller->_impl->_gcController = gcController;
|
|
|
|
controller->_deviceName = [gcController.vendorName UTF8String];
|
|
|
|
|
|
|
|
s_allController.push_back(controller);
|
|
|
|
|
|
|
|
controller->registerListeners();
|
|
|
|
controller->getDeviceName();
|
|
|
|
|
|
|
|
controller->onConnected();
|
2019-11-23 20:27:39 +08:00
|
|
|
}
|
2021-12-31 12:12:40 +08:00
|
|
|
disconnection:^(GCController* gcController) {
|
|
|
|
auto iter = std::find_if(s_allController.begin(), s_allController.end(),
|
|
|
|
[gcController](Controller* c) { return c->_impl->_gcController == gcController; });
|
|
|
|
|
|
|
|
if (iter == s_allController.end())
|
|
|
|
{
|
|
|
|
log("disconnect:Could not find the controller");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
(*iter)->onDisconnected();
|
|
|
|
s_allController.erase(iter);
|
|
|
|
}];
|
2019-11-23 20:27:39 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void Controller::stopDiscoveryController()
|
|
|
|
{
|
2021-12-31 12:12:40 +08:00
|
|
|
if (NSClassFromString(@"GCController") == nil)
|
|
|
|
{
|
2019-11-23 20:27:39 +08:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
[GCController stopWirelessControllerDiscovery];
|
|
|
|
}
|
|
|
|
|
|
|
|
Controller::Controller()
|
2021-12-31 12:12:40 +08:00
|
|
|
: _deviceId(0)
|
|
|
|
, _controllerTag(TAG_UNSET)
|
|
|
|
, _impl(new ControllerImpl(this))
|
|
|
|
, _connectEvent(nullptr)
|
|
|
|
, _keyEvent(nullptr)
|
|
|
|
, _axisEvent(nullptr)
|
2019-11-23 20:27:39 +08:00
|
|
|
{
|
|
|
|
init();
|
|
|
|
}
|
|
|
|
|
|
|
|
Controller::~Controller()
|
|
|
|
{
|
|
|
|
delete _impl;
|
2021-12-31 12:12:40 +08:00
|
|
|
|
2019-11-23 20:27:39 +08:00
|
|
|
delete _connectEvent;
|
|
|
|
delete _keyEvent;
|
|
|
|
delete _axisEvent;
|
|
|
|
}
|
|
|
|
|
|
|
|
void Controller::registerListeners()
|
|
|
|
{
|
|
|
|
if (_impl->_gcController.extendedGamepad != nil)
|
|
|
|
{
|
2021-12-31 12:12:40 +08:00
|
|
|
_impl->_gcController.extendedGamepad.dpad.up.valueChangedHandler =
|
|
|
|
^(GCControllerButtonInput* button, float value, BOOL pressed) {
|
|
|
|
onButtonEvent(Key::BUTTON_DPAD_UP, pressed, value, button.isAnalog);
|
|
|
|
};
|
|
|
|
|
|
|
|
_impl->_gcController.extendedGamepad.dpad.down.valueChangedHandler =
|
|
|
|
^(GCControllerButtonInput* button, float value, BOOL pressed) {
|
|
|
|
onButtonEvent(Key::BUTTON_DPAD_DOWN, pressed, value, button.isAnalog);
|
|
|
|
};
|
|
|
|
|
|
|
|
_impl->_gcController.extendedGamepad.dpad.left.valueChangedHandler =
|
|
|
|
^(GCControllerButtonInput* button, float value, BOOL pressed) {
|
|
|
|
onButtonEvent(Key::BUTTON_DPAD_LEFT, pressed, value, button.isAnalog);
|
|
|
|
};
|
|
|
|
|
|
|
|
_impl->_gcController.extendedGamepad.dpad.right.valueChangedHandler =
|
|
|
|
^(GCControllerButtonInput* button, float value, BOOL pressed) {
|
|
|
|
onButtonEvent(Key::BUTTON_DPAD_RIGHT, pressed, value, button.isAnalog);
|
|
|
|
};
|
|
|
|
|
|
|
|
_impl->_gcController.extendedGamepad.leftThumbstick.xAxis.valueChangedHandler =
|
|
|
|
^(GCControllerAxisInput* axis, float value) {
|
|
|
|
onAxisEvent(Key::JOYSTICK_LEFT_X, value, axis.isAnalog);
|
|
|
|
};
|
|
|
|
|
|
|
|
_impl->_gcController.extendedGamepad.leftThumbstick.yAxis.valueChangedHandler =
|
|
|
|
^(GCControllerAxisInput* axis, float value) {
|
|
|
|
onAxisEvent(Key::JOYSTICK_LEFT_Y, -value, axis.isAnalog);
|
|
|
|
};
|
|
|
|
|
|
|
|
_impl->_gcController.extendedGamepad.rightThumbstick.xAxis.valueChangedHandler =
|
|
|
|
^(GCControllerAxisInput* axis, float value) {
|
|
|
|
onAxisEvent(Key::JOYSTICK_RIGHT_X, value, axis.isAnalog);
|
|
|
|
};
|
|
|
|
|
|
|
|
_impl->_gcController.extendedGamepad.rightThumbstick.yAxis.valueChangedHandler =
|
|
|
|
^(GCControllerAxisInput* axis, float value) {
|
|
|
|
onAxisEvent(Key::JOYSTICK_RIGHT_Y, -value, axis.isAnalog);
|
|
|
|
};
|
|
|
|
|
|
|
|
_impl->_gcController.extendedGamepad.valueChangedHandler = ^(GCExtendedGamepad* gamepad,
|
|
|
|
GCControllerElement* element) {
|
|
|
|
if (element == gamepad.buttonA)
|
|
|
|
{
|
|
|
|
onButtonEvent(Key::BUTTON_A, gamepad.buttonA.isPressed, gamepad.buttonA.value, gamepad.buttonA.isAnalog);
|
|
|
|
}
|
|
|
|
else if (element == gamepad.buttonB)
|
|
|
|
{
|
|
|
|
onButtonEvent(Key::BUTTON_B, gamepad.buttonB.isPressed, gamepad.buttonB.value, gamepad.buttonB.isAnalog);
|
|
|
|
}
|
|
|
|
else if (element == gamepad.buttonX)
|
|
|
|
{
|
|
|
|
onButtonEvent(Key::BUTTON_X, gamepad.buttonX.isPressed, gamepad.buttonX.value, gamepad.buttonX.isAnalog);
|
|
|
|
}
|
|
|
|
else if (element == gamepad.buttonY)
|
|
|
|
{
|
|
|
|
onButtonEvent(Key::BUTTON_Y, gamepad.buttonY.isPressed, gamepad.buttonY.value, gamepad.buttonY.isAnalog);
|
|
|
|
}
|
|
|
|
else if (element == gamepad.leftShoulder)
|
|
|
|
{
|
|
|
|
onButtonEvent(Key::BUTTON_LEFT_SHOULDER, gamepad.leftShoulder.isPressed, gamepad.leftShoulder.value,
|
|
|
|
gamepad.leftShoulder.isAnalog);
|
|
|
|
}
|
|
|
|
else if (element == gamepad.rightShoulder)
|
|
|
|
{
|
|
|
|
onButtonEvent(Key::BUTTON_RIGHT_SHOULDER, gamepad.rightShoulder.isPressed, gamepad.rightShoulder.value,
|
|
|
|
gamepad.rightShoulder.isAnalog);
|
|
|
|
}
|
|
|
|
else if (element == gamepad.leftTrigger)
|
|
|
|
{
|
|
|
|
onAxisEvent(Key::AXIS_LEFT_TRIGGER, gamepad.leftTrigger.value, gamepad.leftTrigger.isAnalog);
|
|
|
|
}
|
|
|
|
else if (element == gamepad.rightTrigger)
|
|
|
|
{
|
|
|
|
onAxisEvent(Key::AXIS_RIGHT_TRIGGER, gamepad.rightTrigger.value, gamepad.rightTrigger.isAnalog);
|
|
|
|
}
|
2019-11-23 20:27:39 +08:00
|
|
|
};
|
|
|
|
}
|
|
|
|
else if (_impl->_gcController.gamepad != nil)
|
|
|
|
{
|
2021-12-31 12:12:40 +08:00
|
|
|
_impl->_gcController.gamepad.dpad.up.valueChangedHandler =
|
|
|
|
^(GCControllerButtonInput* button, float value, BOOL pressed) {
|
|
|
|
onButtonEvent(Key::BUTTON_DPAD_UP, pressed, value, button.isAnalog);
|
|
|
|
};
|
|
|
|
|
|
|
|
_impl->_gcController.gamepad.dpad.down.valueChangedHandler =
|
|
|
|
^(GCControllerButtonInput* button, float value, BOOL pressed) {
|
|
|
|
onButtonEvent(Key::BUTTON_DPAD_DOWN, pressed, value, button.isAnalog);
|
|
|
|
};
|
|
|
|
|
|
|
|
_impl->_gcController.gamepad.dpad.left.valueChangedHandler =
|
|
|
|
^(GCControllerButtonInput* button, float value, BOOL pressed) {
|
|
|
|
onButtonEvent(Key::BUTTON_DPAD_LEFT, pressed, value, button.isAnalog);
|
|
|
|
};
|
|
|
|
|
|
|
|
_impl->_gcController.gamepad.dpad.right.valueChangedHandler =
|
|
|
|
^(GCControllerButtonInput* button, float value, BOOL pressed) {
|
|
|
|
onButtonEvent(Key::BUTTON_DPAD_RIGHT, pressed, value, button.isAnalog);
|
|
|
|
};
|
|
|
|
|
|
|
|
_impl->_gcController.gamepad.valueChangedHandler = ^(GCGamepad* gamepad, GCControllerElement* element) {
|
|
|
|
if (element == gamepad.buttonA)
|
|
|
|
{
|
|
|
|
onButtonEvent(Key::BUTTON_A, gamepad.buttonA.isPressed, gamepad.buttonA.value, gamepad.buttonA.isAnalog);
|
|
|
|
}
|
|
|
|
else if (element == gamepad.buttonB)
|
|
|
|
{
|
|
|
|
onButtonEvent(Key::BUTTON_B, gamepad.buttonB.isPressed, gamepad.buttonB.value, gamepad.buttonB.isAnalog);
|
|
|
|
}
|
|
|
|
else if (element == gamepad.buttonX)
|
|
|
|
{
|
|
|
|
onButtonEvent(Key::BUTTON_X, gamepad.buttonX.isPressed, gamepad.buttonX.value, gamepad.buttonX.isAnalog);
|
|
|
|
}
|
|
|
|
else if (element == gamepad.buttonY)
|
|
|
|
{
|
|
|
|
onButtonEvent(Key::BUTTON_Y, gamepad.buttonY.isPressed, gamepad.buttonY.value, gamepad.buttonY.isAnalog);
|
|
|
|
}
|
|
|
|
else if (element == gamepad.leftShoulder)
|
|
|
|
{
|
|
|
|
onButtonEvent(Key::BUTTON_LEFT_SHOULDER, gamepad.leftShoulder.isPressed, gamepad.leftShoulder.value,
|
|
|
|
gamepad.leftShoulder.isAnalog);
|
|
|
|
}
|
|
|
|
else if (element == gamepad.rightShoulder)
|
|
|
|
{
|
|
|
|
onButtonEvent(Key::BUTTON_RIGHT_SHOULDER, gamepad.rightShoulder.isPressed, gamepad.rightShoulder.value,
|
|
|
|
gamepad.rightShoulder.isAnalog);
|
|
|
|
}
|
2019-11-23 20:27:39 +08:00
|
|
|
};
|
|
|
|
}
|
2022-07-16 10:43:05 +08:00
|
|
|
# if defined(AX_TARGET_OS_TVOS)
|
2019-11-23 20:27:39 +08:00
|
|
|
else if (_impl->_gcController.microGamepad != nil)
|
|
|
|
{
|
2021-12-31 12:12:40 +08:00
|
|
|
_impl->_gcController.microGamepad.dpad.up.valueChangedHandler =
|
|
|
|
^(GCControllerButtonInput* button, float value, BOOL pressed) {
|
|
|
|
onButtonEvent(Key::BUTTON_DPAD_UP, pressed, value, button.isAnalog);
|
|
|
|
};
|
|
|
|
|
|
|
|
_impl->_gcController.microGamepad.dpad.down.valueChangedHandler =
|
|
|
|
^(GCControllerButtonInput* button, float value, BOOL pressed) {
|
|
|
|
onButtonEvent(Key::BUTTON_DPAD_DOWN, pressed, value, button.isAnalog);
|
|
|
|
};
|
|
|
|
|
|
|
|
_impl->_gcController.microGamepad.dpad.left.valueChangedHandler =
|
|
|
|
^(GCControllerButtonInput* button, float value, BOOL pressed) {
|
|
|
|
onButtonEvent(Key::BUTTON_DPAD_LEFT, pressed, value, button.isAnalog);
|
|
|
|
};
|
|
|
|
|
|
|
|
_impl->_gcController.microGamepad.dpad.right.valueChangedHandler =
|
|
|
|
^(GCControllerButtonInput* button, float value, BOOL pressed) {
|
|
|
|
onButtonEvent(Key::BUTTON_DPAD_RIGHT, pressed, value, button.isAnalog);
|
|
|
|
};
|
|
|
|
|
|
|
|
_impl->_gcController.microGamepad.valueChangedHandler = ^(GCMicroGamepad* gamepad,
|
|
|
|
GCControllerElement* element) {
|
|
|
|
if (element == gamepad.buttonA)
|
|
|
|
{
|
|
|
|
onButtonEvent(Key::BUTTON_A, gamepad.buttonA.isPressed, gamepad.buttonA.value, gamepad.buttonA.isAnalog);
|
|
|
|
}
|
|
|
|
else if (element == gamepad.buttonX)
|
|
|
|
{
|
|
|
|
onButtonEvent(Key::BUTTON_X, gamepad.buttonX.isPressed, gamepad.buttonX.value, gamepad.buttonX.isAnalog);
|
|
|
|
}
|
2019-11-23 20:27:39 +08:00
|
|
|
};
|
|
|
|
}
|
2021-12-31 12:12:40 +08:00
|
|
|
# endif
|
|
|
|
|
|
|
|
_impl->_gcController.controllerPausedHandler = ^(GCController* gcCon) {
|
|
|
|
auto iter = std::find_if(s_allController.begin(), s_allController.end(),
|
|
|
|
[gcCon](Controller* c) { return c->_impl->_gcController == gcCon; });
|
|
|
|
|
|
|
|
if (iter == s_allController.end())
|
|
|
|
{
|
|
|
|
log("Could not find the controller");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
onButtonEvent(Key::BUTTON_PAUSE, true, 1.0f, false);
|
|
|
|
onButtonEvent(Key::BUTTON_PAUSE, false, 0.0f, false);
|
2019-11-23 20:27:39 +08:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
bool Controller::isConnected() const
|
|
|
|
{
|
|
|
|
return _impl->_gcController.isAttachedToDevice == YES;
|
|
|
|
}
|
|
|
|
|
2021-12-31 12:12:40 +08:00
|
|
|
void Controller::receiveExternalKeyEvent(int externalKeyCode, bool receive) {}
|
2019-11-23 20:27:39 +08:00
|
|
|
|
2022-07-11 17:50:21 +08:00
|
|
|
NS_AX_END
|
2019-11-23 20:27:39 +08:00
|
|
|
|
2022-07-16 10:43:05 +08:00
|
|
|
#endif // #if (AX_TARGET_PLATFORM == AX_PLATFORM_IOS)
|