android - Unable to get key events for touchscreen keyboard from /dev/input/event1 -


i unable key events /dev/input/event1. i'm able filter out output absolute x , y touch coordinates event code 53 , 54. i'm confused why there's no output event code 1 when type on soft keyboard. want know key user presses , how pressure. hope understand problem.

i'm on rooted samsung galaxy s4.

because soft keyboard doesn't work that. isn't part of os, application. keyboard app given touch events, , call java functions tell main app pressed. doesn't go through hardware input channels @ after press. os doesn't know keys where, ever.

most keyboards don't generate key events- generate word @ time output via committext.

basically, can't want in way want. way know keys pressed, without altering os, on other side of inputconnection processing commands inputmethodservice (keyboard).


Comments

Popular posts from this blog

cron - how to properly run Python script with crontab on every system startup -

elasticsearch - Is the order of operations guaranteed in a bulk update? -

Slow performance first queries on SQL Azure -