Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > PocketBook > PocketBook Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 10-13-2011, 11:55 AM   #1
mtt
Junior Member
mtt began at the beginning.
 
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?
mtt is offline   Reply With Quote
Old 10-13-2011, 06:17 PM   #2
rkomar
Wizard
rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.
 
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)?
rkomar is offline   Reply With Quote
Advert
Old 10-19-2011, 12:07 AM   #3
mtt
Junior Member
mtt began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2011
Device: PocketBook Pro 903
SetGSensor(GSENSOR_INTR) solves the problem. Thanks.
mtt is offline   Reply With Quote
Reply


Forum Jump


All times are GMT -4. The time now is 04:06 PM.


MobileRead.com is a privately owned, operated and funded community.