mirror of https://github.com/kivy/pyjnius.git
update README.md. closes #64
This commit is contained in:
parent
5ff62b146e
commit
8e2564ccc8
|
@ -50,7 +50,7 @@ from jnius import autoclass
|
||||||
Hardware = autoclass('org.renpy.android.Hardware')
|
Hardware = autoclass('org.renpy.android.Hardware')
|
||||||
print 'DPI is', Hardware.getDPI()
|
print 'DPI is', Hardware.getDPI()
|
||||||
|
|
||||||
Hardware.accelerometerEnable()
|
Hardware.accelerometerEnable(True)
|
||||||
for x in xrange(20):
|
for x in xrange(20):
|
||||||
print Hardware.accelerometerReading()
|
print Hardware.accelerometerReading()
|
||||||
sleep(.1)
|
sleep(.1)
|
||||||
|
|
Loading…
Reference in New Issue