Merge pull request #196 from TakaRikka/feature/camera-invert-option

Added camera invert X option to Tweaks menu
This commit is contained in:
TakaRikka
2026-04-01 18:30:35 -07:00
committed by GitHub
4 changed files with 10 additions and 0 deletions
+1
View File
@@ -8428,6 +8428,7 @@ inline daAlink_c* daAlink_getAlinkActorClass() {
#if TARGET_PC
namespace dusk::tweaks {
extern bool FastIronBoots;
extern bool InvertCameraXAxis;
}
#endif
+1
View File
@@ -56,6 +56,7 @@
#if TARGET_PC
bool dusk::tweaks::FastIronBoots = false;
bool dusk::tweaks::InvertCameraXAxis = false;
#endif
static int daAlink_Create(fopAc_ac_c* i_this);
+7
View File
@@ -762,6 +762,13 @@ void dCamera_c::updatePad() {
var_f29 = 0.0f;
} else {
var_f31 = mDoCPd_c::getSubStickX3D(mPadID);
#if TARGET_PC
if (dusk::tweaks::InvertCameraXAxis) {
var_f31 *= -1.0f;
}
#endif
var_f30 = mDoCPd_c::getSubStickY(mPadID);
var_f29 = mDoCPd_c::getSubStickValue(mPadID);
}
+1
View File
@@ -78,6 +78,7 @@ namespace dusk {
if (ImGui::BeginMenu("Tweaks")) {
ImGui::MenuItem("Fast iron boots", nullptr, &tweaks::FastIronBoots);
ImGui::MenuItem("Invert Camera X Axis", nullptr, &tweaks::InvertCameraXAxis);
ImGui::EndMenu();
}