By Marco Chiappetta
Just a quick-n-dirty proof of concept of how it is possible to use the device's barometer to simulate Apple's "force touch" interaction. There are two major problems: all the flaps (I have a Z3 compact) have to be sealed for the pressure to change when pressing the screen and since the flaps are not 100% sealed after a few seconds the pressure goes down even if you keep pressing on the screen (air goes out). Other than that it's a pretty cool interaction.
Inspired by these posts:
- https://medium.com/produkt-blog/3d-f...1f5#.p6toong0z
- http://forum.xda-developers.com/z3-c...touch-t3233058
Used this plugin for accessing the barometer on Cordova:
- https://github.com/zanderso/cordova-plugin-barometer (thank you!)
Source code:
- https://github.com/lambdacomplete/3d...roid_barometer
Just a quick-n-dirty proof of concept of how it is possible to use the device's barometer to simulate Apple's "force touch" interaction. There are two major problems: all the flaps (I have a Z3 compact) have to be sealed for the pressure to change when pressing the screen and since the flaps are not 100% sealed after a few seconds the pressure goes down even if you keep pressing on the screen (air goes out). Other than that it's a pretty cool interaction.
Inspired by these posts:
- https://medium.com/produkt-blog/3d-f...1f5#.p6toong0z
- http://forum.xda-developers.com/z3-c...touch-t3233058
Used this plugin for accessing the barometer on Cordova:
- https://github.com/zanderso/cordova-plugin-barometer (thank you!)
Source code:
- https://github.com/lambdacomplete/3d...roid_barometer