![]() |
#1 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Oct 2011
Device: PocketBook Pro 903
|
How to use GSensor?
Hi,
I tried to read GSensor values with ReadGSensor(x,y,z) function. I'm getting some values like 15, 0, -115 and so on, but every time I call this function, these values are the same until I close app and run it again. I've tried QueryGSensor() function, but it doesn't work as I supposed to. And so - how to read gsensor values dynamically? |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,039
Karma: 18821071
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
Maybe you have to call SetGSensor(GSENSOR_ON) first? Or with GSENSOR_INTR (don't know what it means though)?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Oct 2011
Device: PocketBook Pro 903
|
SetGSensor(GSENSOR_INTR) solves the problem. Thanks.
|
![]() |
![]() |