I'm trying to alter my key binding code to make it use InputChanged rather than a combination of InputBegan and InputEnded to make adding new binds easier, but InputChanged seems to be only firing on MouseWheel and MouseMovement UserInputTypes, only.
if not uis.TouchEnabled then uis.InputChanged:connect(function(inst) print(inst.UserInputType) if inst.UserInputType == Enum.UserInputType.Keyboard then local key = inst.KeyCode local fal = inst.UserInputState == Enum.UserInputState.Begin and true or false --snop keycodes for binds junk elseif inst.UserInputType == Enum.UserInputType.MouseWheel then --TODO: Zooming stuff end end) else --TODO: Touch Controls end
~~Is there any workaround for this?~~
Turns out InputBegan/Ended doesn't trigger MouseWheel or MouseMovement.
Sucks for me. :/