Multitouch help with Slider

So I have a slider in my game and the user should be able to touch the shoot button and move the slider. I did activate multitouch but I think I am missing something. Multitouch only works for events that have a touch event listener. I tried to add a touch event listener to my slider (which you can touch and drag) but I’m not getting good results. Here is the code for the slider:

What is the best way to add a touch event for the slider? You can touch/drag it without having a touch event but it won’t be triggered from the multitouch function.

[lua]local function sliderListener(event)
local sliderVal = event.value

gun.rotation = sliderVal * 180 / 100 - 90

return true
end

local slider = widget.newSlider{
width = 160,
top = 200,
left = 150,
handle = “slider.png”,
handleWidth = 30,
handleHeight = 20,
fillColor = {80, 100, 140, 255},
bgStroke = {140, 150, 150, 150},
baseDir = system.DocumentsDirectory,
listener = sliderListener
}
slider.x = display.contentCenterX - 160
slider.y = display.contentHeight - 15 [import]uid: 69494 topic_id: 32083 reply_id: 332083[/import]

@neilw711,

see my post here…

https://developer.coronalabs.com/forum/2012/10/16/multitouch-issue-joystick

Hope this helps,

Nail [import]uid: 106779 topic_id: 32083 reply_id: 127827[/import]

@neilw711,

see my post here…

https://developer.coronalabs.com/forum/2012/10/16/multitouch-issue-joystick

Hope this helps,

Nail [import]uid: 106779 topic_id: 32083 reply_id: 127827[/import]