Mercurial > wow > skeletonkey
comparison SkeletonKey/KeyBinds.lua @ 7:a2fc77fa4c73
- make sure key bindings honor the `ActionButtonUseKeyDown' CVar
author | Nenue |
---|---|
date | Thu, 28 Jul 2016 17:27:40 -0400 |
parents | f6d1c192afc6 |
children | 539fd88338f2 |
comparison
equal
deleted
inserted
replaced
6:f6d1c192afc6 | 7:a2fc77fa4c73 |
---|---|
14 -- .SelectProfile(name) set profile character | 14 -- .SelectProfile(name) set profile character |
15 -- .ApplyBindings(bindings) walk table with SetBinding() | 15 -- .ApplyBindings(bindings) walk table with SetBinding() |
16 | 16 |
17 local _ | 17 local _ |
18 local kb, print = LibStub("LibKraken").register(KeyBinder) | 18 local kb, print = LibStub("LibKraken").register(KeyBinder) |
19 local db | |
20 local cprint = DEVIAN_WORKSPACE and function(...) _G.print('Cfg', ...) end or function() end | 19 local cprint = DEVIAN_WORKSPACE and function(...) _G.print('Cfg', ...) end or function() end |
20 | |
21 | 21 |
22 --- Caps Lock literals | 22 --- Caps Lock literals |
23 local CLICK_KEYBINDER_MACRO = "CLICK KeyBinderMacro:" | 23 local CLICK_KEYBINDER_MACRO = "CLICK KeyBinderMacro:" |
24 local CLICK_KEYBINDER_KEY = "CLICK KeyBinderKey:" | 24 local CLICK_KEYBINDER_KEY = "CLICK KeyBinderKey:" |
25 local BINDING_ASSIGNED = '|cFF00FF00%s|r assigned to |cFFFFFF00%s|r (%s).' | 25 local BINDING_ASSIGNED = '|cFF00FF00%s|r assigned to |cFFFFFF00%s|r (%s).' |
85 -- unselected talents | 85 -- unselected talents |
86 local talentBindings = {} | 86 local talentBindings = {} |
87 kb.inactiveTalentBindings = {} | 87 kb.inactiveTalentBindings = {} |
88 -- placeholder for the StaticPopup used for confirmations | 88 -- placeholder for the StaticPopup used for confirmations |
89 local confirmation | 89 local confirmation |
90 -- savedvars, pulled a lot here | |
91 local db | |
90 | 92 |
91 local protected = { | 93 local protected = { |
92 ['OPENCHATSLASH'] = true, | 94 ['OPENCHATSLASH'] = true, |
93 ['OPENCHAT'] = true, | 95 ['OPENCHAT'] = true, |
94 } | 96 } |
176 else | 178 else |
177 return nil | 179 return nil |
178 end | 180 end |
179 end | 181 end |
180 | 182 |
181 | |
182 | |
183 | |
184 kb.DropToSlot = function(self) | 183 kb.DropToSlot = function(self) |
185 | |
186 print(self:GetName(),'|cFF0088FFreceived|r') | 184 print(self:GetName(),'|cFF0088FFreceived|r') |
187 local actionType, actionID, subType, subData = GetCursorInfo() | 185 local actionType, actionID, subType, subData = GetCursorInfo() |
188 print('GetCursorInfo', GetCursorInfo()) | 186 print('GetCursorInfo', GetCursorInfo()) |
189 | |
190 | |
191 if actionType then | 187 if actionType then |
192 | 188 |
193 if actionType == 'flyout' then | 189 if actionType == 'flyout' then |
194 ClearCursor() | 190 ClearCursor() |
195 ResetCursor() | 191 ResetCursor() |