Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-13-2011, 12:55 PM   #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, 07: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: 1,769
Karma: 4368476
Join Date: Oct 2010
Location: Vancouver, BC, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840
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
Old 10-19-2011, 01: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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump


All times are GMT -4. The time now is 06:45 AM.


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