InputBegan ( InputObject input )
InputChanged ( InputObject input )
InputEnded ( InputObject input )
I request these functions be added to ArcHandles and Handles so that code can be easily written as such:
local ac = ArcHandle
ac.InputBegan:connect(function(input)
if input.Position.x == 1 then
--rotation on X axis has began
-- code for rotating
end
end)
ac.InputEnded:connect(function(input)
if input.Position.x == 1 then
--rotation on X axis has Stopped
-- code
game:GetService('ChangeHistoryService'):SetWaypoint('Rotate')
end
end)
If you think the Axis should not be located at input.Position, then maybe at input.Delta or input.KeyCode.X/Y/Z, or add the Axis as a second argument to the InputBegan/Changed/Ended Events.
Why? because Handle.MouseButton1Up only fires if my Mouse is still on the Handle I clicked on