/dev/uinput Mouse/TouchScreen Controls - Android Q&A, Help & Troubleshooting

I am working on a native library that creates 2 virtual input devices with /dev/uinput. 1 is a keyboard and the other is mouse. I have the keyboard working perfectly, but I am having a hard time with the mouse.
The library is a part of a remote control application I am working on that has a firewall punch through (for devices like android sticks or Google TV's that sit behind a firewall so you don't have to do any port forwarding).
I have the mouse clicking working just fine, but I am struggling setting the mouse pointers position. I can't get the mouse to go to where I want it.
My mouse creation and control code can be found here:
pastebin.com/ifNYF5BC
I am not sure what I am doing wrong. I have read some people saying it's not possible while other similar apps I have seen are doing what I want (in appearance at least).

Related

[THINKTANK] Enabling Mouse Cursor

Using hidd, a bluetooth keyboard can be connected to the nexus one, and it works quite well. How about a mouse? My bluetooth mouse connected. But all i can do is kinda of move the mouse to scroll around. So im starting this thread to try to make this happen.
Why it may be possible possible:
The folks at android x86 have made a mouse patch to enable the cursor. They are also open source.
Why it may not be possible:
Their code is probably for a built in pointer device, not bluetooth. Also, they are using android 1.6 at the moment.
hidd connect how to: http://i-miss-erin.blogspot.com/2009/09/connect-bluetooth-keyboard-in-android.html
android x86: http://www.androidx86.org/
(screenshots and source)
interesting reads:
http://groups.google.com/group/android-x86/browse_thread/thread/f8c34f6ef9b3c24d?pli=1
Oh yeah, um, why we want better mouse support? to play quake 3 of course...
Hi, I'm the developer of android-x86.
Yes, of course it is possible to apply our mouse patch to N1. It's cool!
And we already have the patch for eclair (check eclair-x86 branch).
I'll begin to work on Froyo soon.
BTW, you may take a look at the 0xdroid project.
They just implemented the Bluetooth HID profile.
(it means, you can connect bt keyboard & mouse via GUI setting)
Regards,
Chih-Wei
I've seen a mouse cursor when you select text, looks nice

Bluetooth Keyboard and Mouse

Greetings everyone,
I have been able to hook up a Bluetooth Keyboard and Mouse to my EVO 3D.
The keyboard works great. I have been able to type perfectly in my applications as well as configure the keyboard to work in my emulators.
The mouse I am having an issue with the "right" mouse button not working as the "go back" function in Android. Has anyone else had this issue? According to all the research I have done this is supposed to work.
I have also noticed in the CyanogenMod 6.X ROM videos on Youtube, that the people using a mouse also get a mouse cursor on their screens as well as being able to right click to "go back" and then using their middle mouse button as a "home" function in android. I did a search through 16 pages of posts on this and could not find an answer. Maybe someone reading this who is smarter than I am can shed some light on the issue.
This is what I am currently using.
Mouse: Microsoft Bluetooth Notebook Mouse 5000
Keyboard: Logitech MX5500 Keyboard.
If anyone else is using a mouse and is not having issues could you tell me the brand/model please? Maybe it is just an issue with this Microsoft Mouse.
Well it looks like the fancy mouse support with a cursor and button functionality was something that was included in CyanogenMod 6.X then removed on CyanogenMod 7.
They then added a patch for version 7. But now apparently it is being included in his latest CyanogenMod.
Regardless, it appears you need root access
**taps desk until HTC removed encryption from bootloader**
Yeah, but on the bright side, this is the first time I've seen HTC add in HID support for BT keyboards!!!!!!
HUGE gain!

Input app for Windows that actually works properly?

I've tried Unified Remote and WinApp off the market, both highly rated, both practically useless for me, if for example you run a setup program the input just stops working so you have to plug a mouse in to complete which completely renders the app pointless to me. That was just an example, all of the ones I've tried have been so flakey as to be frustrating.
Are there any apps that can act as keyboard and mouse for a remote windows system that actually work 100% of the time?
I used to use Gmote a while back and never ran into the issues you're describing. I think now its primary function is based around media control but has a track pad and keyboard function.

[Q] how to make appear android cursor mouse?

Hi all
I am asking how to make appear android mouse cursor without connect a Bluetooth mouse so I think it's like make a android service that emulate a Bluetooth mouse (HID Bluetooth mouse in android ) in order to show the android pointer.
secondly after succeeded in showing the android mouse cursor I need to control that pointer and move it using like motionEvent for instance make click event move to specific x,y position, etc
I got an idea using HID but actually I am not sure if it can be programmed or its impossible.
Can anyone please to help me in this​

Mouse wheel on any button

Hello,
I have searched the web but without any solution that I am able to understand.
I have bought an android box from china which comes with a ir-remote.
As I am plannig to use this box as a desktop replacement as soon as i am able to get my new NAS up to speed I want to be able to use this box comfortably, even from my couch.
I use some sites to read comics and most of them work with arrow keys on chrome. Some have limited support for this so I need to be able to use the mouse (or at least a leftklick) and the mousewheel to navigate this sites if they dont support arrow keys.
The box has an ir receiver and bluetooth so I have multiple controll options avaliable.
Now to the remapping of keys:
I have found this:
source(dot)android(dot)com -> Keyboard Device
with this table and the vendorxxx.kl file I should be able to remap buttons.
now the caviat: arrow does not work propperly on every site and page_up/down jumps too far.
is there a way to confiure page_up/down in a way that it doesn't jump as far so i could use multiple clicks to jump as far as i need or is there a way to emulate a mouse wheel scroll with a analoge stick from a bluetooth controller?
I have as I said a ir remote and a generic usb controller and this:
Baofeng Monji 4 Bluetooth Controller (wireless Nunchuck style)
I would prefere the mouse wheel as it hase more use but a substitute would be fine.
I hope someone can help me

Categories

Resources