diff --git a/src/Outer_Wilds.ahk b/src/Outer_Wilds.ahk index 6c51483..197c189 100644 --- a/src/Outer_Wilds.ahk +++ b/src/Outer_Wilds.ahk @@ -57,26 +57,17 @@ return *!Space UP::Hold("Space",["Shift"]) *!Shift UP::Hold("Shift",["Space"]) -; Alt+Scroll changes deflect percent -*!WheelUp:: -Defl := Min(Defl + 5,100) -MyGuiTime = 10 -SetTimer, UpdateGui, 100 -Goto UpdateGui -return -*!WheelDown:: -Defl := Max(Defl - 5,0) -MyGuiTime = 10 -SetTimer, UpdateGui, 100 -Goto UpdateGui -return - ; Reset all axes when capslock is pressed ~CapsLock:: MyXbox.Axes.LY.SetState(50) MyXbox.Axes.LX.SetState(50) MyXbox.Axes.RT.SetState(0) MyXbox.Axes.LT.SetState(0) +If GetKeyState("CapsLock","T") { + MyGuiTime = 10 + SetTimer, UpdateGui, 100 + Goto UpdateGui +} return ; Fine control is active when caps lock is on @@ -98,4 +89,18 @@ Space::MyXbox.Axes.RT.SetState(Defl*.16) Space UP::MyXbox.Axes.RT.SetState(0) Shift::MyXbox.Axes.LT.SetState(Defl*.16) -Shift UP::MyXbox.Axes.LT.SetState(0) \ No newline at end of file +Shift UP::MyXbox.Axes.LT.SetState(0) + +; Alt+Scroll changes deflect percent +*!WheelUp:: +Defl := Min(Defl + 5,100) +MyGuiTime = 10 +SetTimer, UpdateGui, 100 +Goto UpdateGui +return +*!WheelDown:: +Defl := Max(Defl - 5,0) +MyGuiTime = 10 +SetTimer, UpdateGui, 100 +Goto UpdateGui +return \ No newline at end of file