I seem to be having an issue with win32 version of my app detecting a “double tap” on mouse. This simulates doubletapping fine in the simulator, but when I build a win32 version of it, only single taps and touch events are working.
In the Mouse documentation: https://docs.coronalabs.com/api/event/mouse/index.html it states that it does read event.numTaps. I have modified event.numTaps to 1 and that registered but changing it back to event.numTaps == 2 did not register double clicking.
Anyone have any ideas behind this?
--Event handler for when a card is double tapped in the results view, adding it into the deck local function onCardAddToDeck(event) local phase = event.phase local target = event.target local dupl = 1 system.setTapDelay(200) if event.numTaps == 2 then print("Double tapped "..target.name.." "..target.serial) --check the decklist for duplicates for i=1, #decklist do if string.find(tostring(decklist[i]), tostring(target.serial), 1, true) then dupl = dupl + 1 end end --add the card to the decklist if its 3 or less AND if the deck is not at 50 cards if dupl \<= 3 then if #decklist \< 50 then --insert card into deck table table.insert(decklist, tostring(target.serial)) deckCount.text = ("Deck: "..#decklist) --[[for i=1, #decklist do print(decklist[i]) end --]] --create deck image of the target local deckCard = display.newImage(target.img, deckCardX, deckCardY) deckCard.img = target.img deckCard.name = target.name deckCard.card\_type = target.card\_type deckCard.element = target.element deckCard.cost = target.cost deckCard.rarity = target.rarity deckCard.power = target.power deckCard.title = target.title deckCard.desc = target.desc deckCard.origin = target.origin deckCard.serial = target.serial if rowCount == 10 then deckCardX = 0 deckCardY = deckCardY + 150 rowCount = 0 else deckCardX = deckCardX + 110 rowCount = rowCount + 1 end --scale the card and increment row and X-pos values deckCard:scale(0.5, 0.5) deckCard.anchorX = 0 deckCard.anchorY = 0 deckScrollView:insert(deckCard) deckCard:addEventListener("touch", onCardTouch) deckCard:addEventListener("tap", onCardRemoveFromDeck) print(target.name.." duplicates: "..dupl) end end end return true end