haxenme / nme

A cross-platform native backend for Haxe projects
MIT License
480 stars 124 forks source link

Initial mobile mouse support #710

Closed codeservice closed 1 year ago

codeservice commented 1 year ago

I am using Bluetooth mouse for iPad. Works on ios, ipados 13+. Could be useful for somebody too. Android mouse move can be easily updated with: case MotionEvent.ACTION_HOVER_MOVE: //TODO process the mouse hover movement... //Log.v("MainView","ACTION_HOVER_MOVE X:" + event.getRawX() + " Y:" + event.getRawY()); final MainView me1 = this; final float x1 = event.getRawX(); final float y1 = event.getRawY(); queueEvent(new Runnable(){ public void run() { me1.HandleResult(NME.onMouseMove(x1,y1) ); } }); return true; Mobile devices getting mouse friendly.