Still dead in the water with Bluetooth mouse and no way to get ACTION_SCROLL ??? This should be the fastest $100 anybody can earn who knows about API 12+ and the onMotionListener. I sure feel like a dope - just can't figure it out.Hello. Usb or bluetooth mouse ?
If bluetooth, i'll by one and will take a look at it.
Nelson
Sub Process_Globals
End Sub
Sub Globals
Dim wheel As ScrollWheelListener
End Sub
Sub Activity_Create(FirstTime As Boolean)
wheel.Initialize(Activity, "act")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub act_WheelMoved(y As Float)
Select y
Case -1
Log("down")
Case 1
Log("up")
End Select
End Sub
Thanks to "obscure" for getting me going! However, it's not going to be easy to get rid of the mouse cursor either by moving it to the top right of the screen or hiding it somehow (user intervention is not an option and that would have to happen programmatically). Also, the act_wheelMoved event in the example above is linked to a specific screen or layout and it would be better if it captured the event as a system event and trapped it so as to not pass it along like the OnHover library does. Maybe a simple edit to that library would be better?Oh , and do you have an example found on the net that shows what your after but in java?
Thanks, I'll have a look. In discussions with "obscure" I believe there is an issue with the device firmware (I'm working with a Tronsmart T428 miniPC) that is causing a problem with trapping the center mouse button event since he can demonstrate it working with a tablet device. At least, that's the initial thinking. I'll try your lib and see where we are at.For the sake of completeness, I have added the x and y coordinates and the MetaStates to the library. You can check the key states as well as the mouse clicks. Updated in post #12.
To hide the mouse pointer I created a new pointer_arrow.png (invisible) and copied it into the framework-res.apk replacing the pointer_arrow.png that is in there. To hide the bar at the bottom, I deleted the System_UI.apk file. Of course, the device has to be rooted. I haven't looked into placing the mouse pointer at boot time but one would guess it is in the firmware somewhere given that it is in the middle of the screen when it boots and I don't think that is an accident.I tested it on my ASUS TF101 10" Tablet and it worked fine, let me know if it works for you.
Re another one of you posts I've searched the Internet and cannot find a way to hide or programatically move the mouse pointer.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?