Open GoogleCodeExporter opened 9 years ago
You cant. Regular android has not relative mouse input api.
If you really want to add mouse input you should root your device and read event from /dev/input queues. That's why I'm using nvidia extensions and I haven't added mouse support for regular android devices.
Original comment by seleuco....@gmail.com
on 6 Jun 2015 at 6:37
The board comes with root access enabled, so it should have /dev/input
accessible.
Where in the code would I need to add the reading of /dev/input?
Thanks!
~ G2M
Original comment by game2m...@gmail.com
on 6 Jun 2015 at 11:28
Not sure. You should encapsulate in a class. Tou should take a look on nvidia
extensions. Maybe you can make factory which encapsulate boths implementations
and replace direct nvidia mouse input.
Original comment by seleuco....@gmail.com
on 6 Jun 2015 at 5:54
Is there any way to do this in the mame code and not the java/android code? The
mame code should be able to open /dev/input, no?
Original comment by game2m...@gmail.com
on 7 Jun 2015 at 12:54
I think so, but you should do some kind of event injection and deal with jni.
Anyway, take a look at this source code.
https://github.com/moonlight-stream/moonlight-android/tree/master/app/src/main/j
ava/com/limelight/binding/input/evdev
Original comment by seleuco....@gmail.com
on 7 Jun 2015 at 2:06
Will do, thanks for the tip!
~ G2M
Original comment by game2m...@gmail.com
on 8 Jun 2015 at 12:01
Original issue reported on code.google.com by
game2m...@gmail.com
on 5 Jun 2015 at 7:30