[plugin] TouchWrap. The different between touchwrap and official touch plugin are -Touchwrap will keep tracing position of cursor when mouse moving even if mouse click is not down. - Touchwrap will keep the lastest touch or cursor position when touch end or mouse click up.
Last edited by rexrainbow on Thu Jul 17, 2014 4:02 am, edited 3 times in total.
In pc, mouse plugin can be used, but touch can not. In pad, touch plugin can be used, but mouse can not. If you want to make a game running on pc and pad, you may create double events for both mouse and touch.
Here is a mouse plugin extension that merging touch events from original touch plugin.
The events mapping list below.
mouse: On click: Left/Middle/Right + Clicked/Double-clicked = touch:On touch start (touch has no key mapped from Left/Middle/Right)
mouse: On any click = touch: On touch start
mouse: Mouse button is down: Left/Middle/Right = touch: Is in touch
mouse: On button released: Left/Middle/Right = touch: On touch end
mouse: On object clicked: Left/Middle/Right + Clicked/Double-clicked = touch: On touched object
mouse: Cursor is over object = touch: Is touching object
Using touchmouse plugin for supporting mouse and touch at a single event.rexrainbow2011-10-28 04:32:42
- keep current speed on action:"Set target position" (in previous version, current speed will be set to 0 if acc!=0) - add action:"Set Current speed". If you still like to start moving at speed=0(or something else), use it.
Special thanks to gonzdevour.rexrainbow2013-03-06 03:00:14