diff --git a/extern/aurora b/extern/aurora index 39933ea02a..0acac1320c 160000 --- a/extern/aurora +++ b/extern/aurora @@ -1 +1 @@ -Subproject commit 39933ea02a603e841e4635d42ac1d07bd636d870 +Subproject commit 0acac1320c58d9083f9bbd8bd8b40647c0d52ecf diff --git a/include/d/actor/d_a_alink.h b/include/d/actor/d_a_alink.h index a3cd2cbfed..a1d78c6116 100644 --- a/include/d/actor/d_a_alink.h +++ b/include/d/actor/d_a_alink.h @@ -4556,7 +4556,7 @@ public: void handleWolfHowl(); void handleQuickTransform(); bool checkAimContext(); - bool checkTouchAimCaptureContext(); + bool checkAimInputContext(); void onIronBallChainInterpCallback(); diff --git a/src/d/actor/d_a_alink_dusk.cpp b/src/d/actor/d_a_alink_dusk.cpp index b1d06c089f..8a2bc0025b 100644 --- a/src/d/actor/d_a_alink_dusk.cpp +++ b/src/d/actor/d_a_alink_dusk.cpp @@ -176,7 +176,7 @@ bool daAlink_c::checkAimContext() { } } -bool daAlink_c::checkTouchAimCaptureContext() { +bool daAlink_c::checkAimInputContext() { switch (mProcID) { case PROC_HOOKSHOT_ROOF_WAIT: case PROC_HOOKSHOT_WALL_WAIT: diff --git a/src/d/actor/d_a_alink_link.inc b/src/d/actor/d_a_alink_link.inc index 0cf53edf3e..cf2f2544d6 100644 --- a/src/d/actor/d_a_alink_link.inc +++ b/src/d/actor/d_a_alink_link.inc @@ -123,7 +123,7 @@ BOOL daAlink_c::setBodyAngleToCamera() { } #if TARGET_PC - if (dusk::getSettings().game.enableMouseAim && checkAimContext()) { + if (dusk::getSettings().game.enableMouseAim && checkAimInputContext()) { sp8 = mBodyAngle.x; } else #endif @@ -142,7 +142,7 @@ BOOL daAlink_c::setBodyAngleToCamera() { #if TARGET_PC if ((dusk::getSettings().game.enableGyroAim || dusk::getSettings().game.enableMouseAim) && - checkAimContext()) + checkAimInputContext()) { f32 gyro_scale = 1.0f; if (checkWolfEyeUp()) { @@ -174,7 +174,7 @@ BOOL daAlink_c::setBodyAngleToCamera() { } } - if (dusk::getSettings().game.enableTouchControls && checkAimContext()) { + if (dusk::getSettings().game.enableTouchControls && checkAimInputContext()) { f32 touchYawDp = 0.0f; f32 touchPitchDp = 0.0f; if (dusk::touch_camera::consume_delta(touchYawDp, touchPitchDp)) { diff --git a/src/d/d_camera.cpp b/src/d/d_camera.cpp index 483e052312..cf0f7cbb56 100644 --- a/src/d/d_camera.cpp +++ b/src/d/d_camera.cpp @@ -7505,7 +7505,7 @@ static bool sTouchFreeCameraActive = false; bool dCamera_c::isAimActive() { auto* link = daAlink_getAlinkActorClass(); - return link != nullptr && link->checkAimContext() && + return link != nullptr && link->checkAimInputContext() && dComIfGp_checkCameraAttentionStatus(link->field_0x317c, 0x10); } diff --git a/src/dusk/ui/touch_controls.cpp b/src/dusk/ui/touch_controls.cpp index e10ca399c6..a85a90930f 100644 --- a/src/dusk/ui/touch_controls.cpp +++ b/src/dusk/ui/touch_controls.cpp @@ -156,11 +156,6 @@ bool player_attention_locked() noexcept { return player != nullptr && (player->checkAttentionLock() || player->checkEnemyAttentionLock()); } -bool touch_aim_capture_active() noexcept { - auto* player = daAlink_getAlinkActorClass(); - return player != nullptr && player->checkTouchAimCaptureContext() && dCamera_c::isAimActive(); -} - bool item_wheel_active() noexcept { return dMeter2Info_getWindowStatus() == 2; } @@ -697,7 +692,7 @@ void TouchControls::sync_touch_state() noexcept { } sync_l_lock_state(); - const bool aimActive = touch_aim_capture_active(); + const bool aimActive = dCamera_c::isAimActive(); if (aimActive && mMoveTouch.active) { if (!mCameraTouch.active) { mCameraTouch = mMoveTouch; @@ -1213,7 +1208,7 @@ void TouchControls::handle_touch_down(Rml::Event& event) noexcept { } const auto id = touch_event_id(event); - if (touch_aim_capture_active()) { + if (dCamera_c::isAimActive()) { if (!mCameraTouch.active) { mCameraTouch = { .id = id,