Controlling the Android pointer

78 views
Skip to first unread message

Martijn Van Mierloo

unread,
Aug 21, 2012, 6:09:16 AM8/21/12
to android-...@googlegroups.com
Setup:
Bluetooth mouse or some remote controller connected. Android provides a pointer on screen to navigate the system.

Requirement:
1. Do not change the Android framework! (Or limit the impact)
2. Some pointer functionality has to be added: 
        - hide / show
        - load custonm / default icons
        - inject keys / motions
        - get current pointer state
        - display toast message when pointing is disabled
        - triggers at activity switch

My approach:
The Android Framework provides some underlying functionality to handle pointer actions. At the moment I have my own PointerManagerService which is started by the SystemServer. Working together with the WindowManagerService, I succeeded to develop a working prototype. This with changing a lot of files like the InputReaders, InputManagers, PointerController.. where functionality is added. As you can see, this has a great impact on the Android Framework.

Question:
Is there an easier way to customize the behaviors of the pointer?

Kaspter Ju

unread,
Aug 23, 2012, 11:37:08 PM8/23/12
to Martijn Van Mierloo, android-...@googlegroups.com
Hi Martijn,

I come with the same requirement with you,

this is my approach:

emulate a user space input device, and then we can inject keys / motions
and other things, add this code does not touch any android
origin input framewaork, but now i can not find a way to custom the
mouse icon, show / hide the mouse icon without touch and the origin
android source code.
Reply all
Reply to author
Forward
0 new messages