KeyMapper icon indicating copy to clipboard operation
KeyMapper copied to clipboard

support detecting when the phone is shaken to do an action

Open magnus-ISU opened this issue 3 years ago • 2 comments

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)

  • [ ] create new branch. put issue number at start of name
  • [ ] update documentation
  • [ ] merge and delete branch (don't squash because want commit history to see why I made changes)

magnus-ISU avatar Aug 16 '22 22:08 magnus-ISU

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 avatar Aug 16 '22 22:08 sds100

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.

sds100 avatar Aug 16 '22 22:08 sds100