To get rid of Momentary Mode, put the following in your custom anduril.h
:
#undef USE_MOMENTARY_MODE
Note:
For those that want to do this, there was a dependency on Tactical Mode in Anduril 2 versions prior to 2024-04-20 – Momentary Mode could only be deactivated if Tactical Mode was also deactivated (I discovered that for myself here, but it seemed to have been already-known).
I haven’t tested it, but this seems to have been fixed in 2024-04-20:
- A pull request fixing the issue was here
- The fix was mentioned in the changelog for 2024-04-20 - “Misc improvements to the build process. Can build with Tactical Mode without Momentary Mode”