Accelerometer in Java

Bastian Muck bastian.muck at gmx.de
Sun Nov 9 23:12:36 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
I guess that this is the way when using jni.

Timo Juhani Lindfors schrieb:
> Bernd Prünster <bernd.pruenster at gmail.com> writes:
>> my question is: how do i read our data from the accelerometers in java?
>
> You open the file[1] and read data[2].
>
> [1] /dev/input/event{2,3}
> [2] data is a steady flow of
>
> struct input_event {
>     struct timeval time;
>     __u16 type;
>     __u16 code;
>     __s32 value;
> };
>
> See linux-2.6.26/Documentation/input/input.txt for more info.
>
>
>
> _______________________________________________
> Openmoko community mailing list
> community at lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFJF2BUlYiDScJJ+7QRAqbyAKC9DUbgAh++aT//HV2VXLy/ImxH4wCZAULY
6rrDc+WSmiV25tHc5KyHj8w=
=aacC
-----END PGP SIGNATURE-----





More information about the community mailing list