Add option to disable scroll offset changing modifier
This commit is contained in:
@@ -8,7 +8,17 @@
|
|||||||
<string>settings_sh.xml</string>
|
<string>settings_sh.xml</string>
|
||||||
<string>settings_rlv.xml</string>
|
<string>settings_rlv.xml</string>
|
||||||
</array>
|
</array>
|
||||||
|
<key>SinguOffsetScrollKeys</key>
|
||||||
|
<map>
|
||||||
|
<key>Comment</key>
|
||||||
|
<string>Enable keys to modify camera and focus offsets</string>
|
||||||
|
<key>Persist</key>
|
||||||
|
<integer>1</integer>
|
||||||
|
<key>Type</key>
|
||||||
|
<string>Boolean</string>
|
||||||
|
<key>Value</key>
|
||||||
|
<integer>1</integer>
|
||||||
|
</map>
|
||||||
<key>PhoenixIMAnnounceStealFocus</key>
|
<key>PhoenixIMAnnounceStealFocus</key>
|
||||||
<map>
|
<map>
|
||||||
<key>Comment</key>
|
<key>Comment</key>
|
||||||
|
|||||||
@@ -2075,7 +2075,8 @@ void LLAgentCamera::handleScrollWheel(S32 clicks)
|
|||||||
{
|
{
|
||||||
if (MASK mask = gKeyboard->currentMask(true)) // Singu Note: Conveniently set view offsets while modifier keys are held during scroll
|
if (MASK mask = gKeyboard->currentMask(true)) // Singu Note: Conveniently set view offsets while modifier keys are held during scroll
|
||||||
{
|
{
|
||||||
if (mask & MASK_CONTROL|MASK_SHIFT)
|
static const LLCachedControl<bool> enableCameraOffsetScroll("SinguOffsetScrollKeys");
|
||||||
|
if (mask & MASK_CONTROL|MASK_SHIFT && enableCameraOffsetScroll)
|
||||||
{
|
{
|
||||||
const F32 change(static_cast<F32>(clicks) * 0.1f);
|
const F32 change(static_cast<F32>(clicks) * 0.1f);
|
||||||
if (mask & MASK_SHIFT)
|
if (mask & MASK_SHIFT)
|
||||||
|
|||||||
Reference in New Issue
Block a user