Le 10/10/2014 12:22, Jan Jongboom a écrit :
> So if I want the value of proximity sensor on Flame I can do:
> 
> $ cd /sys/devices/virtual/input/input3
> $ echo 1 > enable && cat prx_raw && echo 0 > enable
> 
> But if I search for 'prx_raw' in the code base I cannot find a reference to 
> it anywhere. Where does the device specific code for dealing with sensors 
> live?
> _______________________________________________
> dev-b2g mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-b2g
> 

We are probably using Android's sensor API. You should have a look in
http://dxr.mozilla.org/mozilla-central/source/hal/gonk/GonkSensor.cpp
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to