plugin -- touchmouse
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.