1
vote
0answers
270 views

map physical button to auto-rotate switch in android?

I would like to map the auto-rotate lock toggle/switch/setting to a physical button in a device. how do I do that? On the linux side of android, in linux/input.h, there are different KEY events, ...