java - Whitelist specific input device types -


i need way check keyevent see type is. want exclude except device's (smartphone/tables) own hardware/capacitive buttons. no mouse, no bt keyboards or game pads etc. want interact it's own buttons. possible?

i think can use getdeviceid() keyevent. if comes 0 it's supposed device itself.

i don't know how reliable is, though.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -