Hello.

bool EventHub::getEvent(int32_t* outDeviceId, int32_t* outType,
        int32_t* outScancode, int32_t* outKeycode, uint32_t *outFlags,
        int32_t* outValue, nsecs_t* outWhen)

For starters, I only wanted to use the four buttons and the 5-
direction d-pad buttons (up,down,left,right,centre). I am not using a
normal Linux driver so, I set the values manually.

outType = EV_KEY
outScancode = hardware scancode
outKeycode = android defined values for the four buttons and the 5 d-
pad buttons (3,4,82,84...)
outFlags = 0
outWhen = 0

Now the up,down,left,right seems to work, but when I click the centre
button, it doesn't seem to work. For example, when I focus the Google
Search field using the d-pad buttons, pressing the centre button
changes the colour of the search filed to orange, but nothing happens.
I also map a button to "ENTER" instead of "DPAD_CENTER", the result
was the same. Focusing on the Web Browser and dialer then pressing the
centre button slightly changed the focus colour, but it didn't start
the program.

When I map a button to number "0", and pressed the 0 button, it
started the Google Search program, so I think it is not a problem of
the Google Search program being unable to be launched.

Pressing the menu button brought up the small five screen thumbnails
of the launcher, not the menu.

Do you know why the ENTER, DPAD_CENTER, HOME, BACK, SEARCH button do
not work? Should I do something else?

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to