MADxpALEX / android-bluez-ime

Automatically exported from code.google.com/p/android-bluez-ime
0 stars 0 forks source link

can we implement mouse motions using bluez IME ? #153

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi , I want to implement HID mouse driver , can i implement bluez IME ? Thank 
you for your help .

Original issue reported on code.google.com by ahmedmeh...@gmail.com on 13 Mar 2012 at 6:07

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

GoogleCodeExporter commented 8 years ago
That depends on what you mean.
Bluez-IME has a HID basic implementation, and you can use that to implement a 
HID reader that reads mouse motion. 

This will not add HID support to the kernel, so you will not be able to use 
Bluez-IME to gain plug-n-play mouse support.

After reading the mouse data, you need to figure out how to send this data to 
Android.

Does this answer your question?
Normally only the kernel can inject messages like this, so you need root access.

Original comment by kenneth@hexad.dk on 15 Mar 2012 at 9:13

GoogleCodeExporter commented 8 years ago
Do i need to extend HID reader class ? then only need to implement abstract 
methods defined at the bottom name "handleHIDMessage()" and 
"getSupportedReportCodes()" ?

There is an app Blueinput which connects with Bluetooth mouse , pointer is not 
visible but there is focus which moves when we move left or right and opens app 
when clicked by mouse. 

Original comment by ahmedmeh...@gmail.com on 17 Mar 2012 at 10:17

GoogleCodeExporter commented 8 years ago
BluePiano also has same features .

http://www.youtube.com/watch?v=B1EbYtq2HYg

Original comment by ahmedmeh...@gmail.com on 17 Mar 2012 at 10:58

GoogleCodeExporter commented 8 years ago
Yes, extending HIDReader would be a good start.
I guess the other apps are sending DPAD_LEFT, DPAD_RIGHT and DPAD_CENTER, that 
should give the results you report.

Original comment by kenneth@hexad.dk on 17 Mar 2012 at 7:57

GoogleCodeExporter commented 8 years ago
OK great . Thank you 

Original comment by ahmedmeh...@gmail.com on 18 Mar 2012 at 9:16