mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-26 07:18:47 -04:00
Merge pull request #196 from TakaRikka/feature/camera-invert-option
Added camera invert X option to Tweaks menu
This commit is contained in:
@@ -8428,6 +8428,7 @@ inline daAlink_c* daAlink_getAlinkActorClass() {
|
||||
#if TARGET_PC
|
||||
namespace dusk::tweaks {
|
||||
extern bool FastIronBoots;
|
||||
extern bool InvertCameraXAxis;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user