0

我在屏幕上有一个精灵,我想在触摸时触发一个事件。我用鼠标事件管理它,但不能让它与触摸输入一起工作。

//This works for mouse. eg.
import flixel.input.mouse.FlxMouseEventManager;
...
add(sprite);
FlxMouseEventManager.add(sprite, onMouseDown, onMouseUp, onMouseOver, onMouseOut);

// Need to work out how to fire event for touch.
I would like the touch equivalent for a sprite. 
FlxTouch????  (needs to be fixed)
4

0 回答 0