On 10/10/2014 03:30 AM, Jan Jongboom wrote:
>> 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
>
> Nah, it lives in a separate repo actually, that is initialized by
> /b2g/config.sh. I had my repo configured for Peak.
>
> F.e. proximity code for Peak lives at
> b2g/hardware/libhardware/modules/sensors/ProximitySensor.cpp
That's the gonk part. Alexandre linked you to the gecko use of the
android HAL. But since we don't know from where you want to access the
sensor value...
Fabrice
--
Fabrice Desré
b2g team
Mozilla Corporation
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g