Thanks Kris but that won't help me much. I know it's pretty scary to
be able to issue a motion event anywhere on the screen promptly
allowing an attacker to overtake the tablet. But my intentions are
control through hardware - nothing programmatic.

All input will come from the user. Until I figure out how to do it via
HID profiles which Android supports (but have little experience in), I
am stuck on a threaded means to get signals (input) from the device.

I do not want to simulate a mouse click at specific coordinates, I
want to simulate them as the user moves his/her thumb on the joystick
on my custom Bluetooth controller.

Anyone have any experience with custom Bluetooth devices and
simulating key & mouse events? If View.performClick() is the only way,
is there a way to obtain the view of the top Activity and inject a
click event? (again, not clicking at an "OK" or "Cancel", but merely
register a click that the activity can pickup and pass it down as an
event)

Thanks,
Dritan

On Jan 30, 3:07 pm, Kristopher Micinski <krismicin...@gmail.com>
wrote:
> In your activity?  Or throughout the system.  If you can write an app
> that makes random keyclicks that seems pretty scary, right?  So I'm
> guessing that this isn't going to be possible.
>
> That comment probably seemed unhelpful, huh? View.performClick is
> probably what you want..
>
> kris
>
>
>
>
>
>
>
> On Mon, Jan 30, 2012 at 2:35 PM, Dritan <djdea...@gmail.com> wrote:
> > Hello,
>
> > I am trying to make a custom Bluetooth device to comply with a HID
> > profile so that my tablet can recognize it as a keyboard & mouse
> > combo. I've come up with a neat way to organize the keys and custom
> > joysticks, and I thus need custom support for this device. (Each hand
> > gets a joystick & 18 keys)
>
> > At this moment I can poll the device, block until a key is pressed
> > through a custom IME. I have been researching on how to simulate a
> > simple mouse click and eventually the goal is to use the custom
> > joysticks to move the pointer across the screen.
>
> > I have my custom IME running in the background and it can send
> > KeyEvent's no problem, however, a mouse click seems to be virtually
> > impossible.
>
> > How can add full support to my custom hardware so that mouse and
> > keyboard work together?
>
> > Thank you,
> > Dritan
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to