MouselookHandler (Mouse Look)

Lets you set up rules that enable mouselook without holding the right mouse button, and strafe with the mouse buttons instead.

File Details

MouselookHandler-v1.3

  • R
  • Mar 13, 2014
  • 182.52 KB
  • 276
  • 5.4.7
  • Retail

File Name

MouselookHandler-v1.3.zip

Supported Versions

  • 5.4.7

1.3

Dropped the changes from 1.2.2a1, added a configuration panel for more customizable mouselook override keybindings and added profile support.

1.2.2a1

Added an option to retain the ability to move forward while pressing left and right mouse buttons simultaneously, while still allowing strafing by pressing only one mouse button.

1.2.1

Updated ToC indicating compatibility to patch 5.4.

1.2

Added an option to automatically force mouselook to be turned off while a spell is awaiting a target (no changes from version 1.2b1).

1.2b1

Added an option to automatically force mouselook to be turned off while a spell is awaiting a target.

1.1

Came across an old forum thread ("Addon, Script, or help needed [MouseLook]", http://us.battle.net/wow/en/forum/topic/4427538772) and improved MouselookHandler so that it can be used to achieve the behavior described there (without the need to click macros after every UI reload).

local movements = {MoveAndSteer = false, MoveBackward = false, MoveForward = false, StrafeLeft = false, StrafeRight = false}

for key, value in pairs(movements) do
  hooksecurefunc(key .. "Start", function() movements[key] = true; MouselookHandler:update() end)
end

for key, value in pairs(movements) do
  hooksecurefunc(key .. "Stop", function() movements[key] = false; MouselookHandler:update() end)
end

function MouselookHandler:predFun(enabled, inverted, clauseText, event, ...)
  for key, value in pairs(movements) do
    if value == true then return true end
  end
  return (enabled and not inverted) or
    (not enabled and inverted)
end

1.0.1

Fixed a bug that prevented initial keybindings from being set using the standalone configuration UI (changing them worked).