@@ -223,24 +223,24 @@ function RopeInputController.handleShiftMousewheelControls(grappleInstance, cont
223
223
return false
224
224
end
225
225
226
- print ( " [SHIFT+WHEEL DEBUG] Starting shift mousewheel check" )
226
+ Logger . debug ( " RopeInputController.handleShiftMousewheelControls() - Starting shift mousewheel check" )
227
227
228
228
-- Only allow when gun is equipped and grapple is attached
229
229
if grappleInstance .actionMode <= 1 then
230
- print ( " [SHIFT+WHEEL DEBUG] Action mode is " .. grappleInstance . actionMode .. " (not attached)" )
230
+ Logger . debug ( " RopeInputController.handleShiftMousewheelControls() - Action mode is %d (not attached)" , grappleInstance . actionMode )
231
231
return false
232
232
end
233
233
234
234
if not isCurrentlyEquipped (grappleInstance ) then
235
- print ( " [SHIFT+WHEEL DEBUG] Gun not currently equipped" )
235
+ Logger . debug ( " RopeInputController.handleShiftMousewheelControls() - Gun not currently equipped" )
236
236
return false
237
237
end
238
238
239
- print ( " [SHIFT+WHEEL DEBUG] Equipment and attachment checks passed" )
239
+ Logger . debug ( " RopeInputController.handleShiftMousewheelControls() - Equipment and attachment checks passed" )
240
240
241
241
-- Check for actual keyboard SHIFT key
242
242
local shiftHeld = controller :IsState (Controller .KEYBOARD_SHIFT )
243
- print ( " [SHIFT+WHEEL DEBUG] Keyboard SHIFT held (KEYBOARD_SHIFT): " .. tostring (shiftHeld ))
243
+ Logger . debug ( " RopeInputController.handleShiftMousewheelControls() - Keyboard SHIFT held (KEYBOARD_SHIFT): %s " , tostring (shiftHeld ))
244
244
245
245
if not shiftHeld then
246
246
return false
@@ -250,13 +250,13 @@ function RopeInputController.handleShiftMousewheelControls(grappleInstance, cont
250
250
local scrollUp = controller :IsState (Controller .SCROLL_UP )
251
251
local scrollDown = controller :IsState (Controller .SCROLL_DOWN )
252
252
253
- print ( " [SHIFT+WHEEL DEBUG] Scroll up: " .. tostring ( scrollUp ) .. " , Scroll down: " .. tostring (scrollDown ))
253
+ Logger . debug ( " RopeInputController.handleShiftMousewheelControls() - Scroll up: %s , Scroll down: %s " , tostring ( scrollUp ), tostring (scrollDown ))
254
254
255
255
if not scrollUp and not scrollDown then
256
256
return false
257
257
end
258
258
259
- print ( " [SHIFT+WHEEL DEBUG] SHIFT + Mousewheel detected!" )
259
+ Logger . info ( " RopeInputController.handleShiftMousewheelControls() - SHIFT + Mousewheel detected!" )
260
260
261
261
-- IMPORTANT: Clear the scroll states to prevent weapon switching
262
262
controller :SetState (Controller .SCROLL_UP , false )
@@ -270,18 +270,18 @@ function RopeInputController.handleShiftMousewheelControls(grappleInstance, cont
270
270
271
271
if scrollUp then
272
272
lengthChange = - preciseScrollSpeed -- Shorten rope
273
- print ( " [SHIFT+WHEEL DEBUG] Shortening rope by " .. preciseScrollSpeed )
273
+ Logger . info ( " RopeInputController.handleShiftMousewheelControls() - Shortening rope by %.1f " , preciseScrollSpeed )
274
274
elseif scrollDown then
275
275
lengthChange = preciseScrollSpeed -- Lengthen rope
276
- print ( " [SHIFT+WHEEL DEBUG] Lengthening rope by " .. preciseScrollSpeed )
276
+ Logger . info ( " RopeInputController.handleShiftMousewheelControls() - Lengthening rope by %.1f " , preciseScrollSpeed )
277
277
end
278
278
279
279
-- Update rope length
280
280
local oldLength = grappleInstance .currentLineLength
281
281
grappleInstance .currentLineLength = math.max (10 , math.min (grappleInstance .currentLineLength + lengthChange , grappleInstance .maxLineLength ))
282
282
grappleInstance .setLineLength = grappleInstance .currentLineLength
283
283
284
- print ( " [SHIFT+WHEEL DEBUG] Rope length changed from " .. oldLength .. " to " .. grappleInstance .currentLineLength )
284
+ Logger . info ( " RopeInputController.handleShiftMousewheelControls() - Rope length changed from %.1f to %.1f " , oldLength , grappleInstance .currentLineLength )
285
285
286
286
-- Clear any automatic selections since user is manually controlling
287
287
grappleInstance .pieSelection = 0
0 commit comments