keymapperorg / KeyMapper

**DEVELOPMENT STOPPED**.📱 An Android app that change what the buttons do on your devices!
http://docs.keymapper.club
GNU General Public License v3.0
990 stars 149 forks source link

support detecting when the phone is shaken to do an action #1090

Open magnus-ISU opened 2 years ago

magnus-ISU commented 2 years ago

I know (From Louis Rossmann) some phones in the past have allowed this action to turn on the flashlight. I think it would be nice to have in general to use Key Mapper's much richer customizability along with benefit this app by having another input type.

It is definitely possible to detect through a similar method to how https://github.com/Gh05t-1337/Fall detects its own action. I think it is either the gyro or accelerometer.

I don't think it would make too much sense to try to have this in a sequence with other button presses, that is one concern for implementing this I think can just be ignored.

Developer TODO (don't remove)

sds100 commented 2 years ago

Hi @magnus-ISU! This is definitely possible to do but I think it is out of scope or feature-creep for this project since this is a key mapper and I think this may be reinventing the wheel. Surely there are apps that can already do this?

sds100 commented 2 years ago

You should be able to use another app that can detect a phone being shaken then it can call a Key Mapper intent or app shortcut.