![]() |
2010-02-21
, 19:25
|
Posts: 27 |
Thanked: 7 times |
Joined on Feb 2010
|
#1
|
The Following User Says Thank You to necoicould For This Useful Post: | ||
![]() |
2010-02-21
, 19:26
|
Posts: 270 |
Thanked: 239 times |
Joined on Dec 2009
@ Czech Republic
|
#2
|
The Following User Says Thank You to Figa For This Useful Post: | ||
![]() |
2010-02-21
, 19:29
|
|
Posts: 1,090 |
Thanked: 476 times |
Joined on Jan 2010
@ Ingolstadt, Germany
|
#3
|
The Following 2 Users Say Thank You to b666m For This Useful Post: | ||
![]() |
2010-02-21
, 19:29
|
Posts: 4,556 |
Thanked: 1,624 times |
Joined on Dec 2007
|
#4
|
![]() |
2010-02-21
, 19:34
|
|
Posts: 171 |
Thanked: 59 times |
Joined on Feb 2010
@ Bristol, uk
|
#5
|
![]() |
2010-02-21
, 19:42
|
Posts: 174 |
Thanked: 99 times |
Joined on Jan 2010
|
#6
|
![]() |
2010-02-21
, 19:52
|
|
Posts: 1,090 |
Thanked: 476 times |
Joined on Jan 2010
@ Ingolstadt, Germany
|
#7
|
// Check if device is in the cover eg. in the pocket etc. // If not, then read accelerometer FILE *fid = fopen("/sys/bus/platform/devices/proximity/state","r"); if(fid!=NULL){ rs=fscanf((FILE*) fid,"%s",&str); fclose(fid); if(str[0] != 'c'){ FILE *fd = fopen("/sys/class/i2c-adapter/i2c-3/3-001d/coord","r"); if(fd!=NULL){ rs=fscanf((FILE*) fd,"%i %i %i",&x,&y,&z); fclose(fd); if( y<-1700 || y>1700){ g_print("\nNext track"); mafw_renderer_next(MAFW_RENDERER(self->renderer), error_cb, NULL); } if(z<-1700){ mafw_renderer_get_status(MAFW_RENDERER(self->renderer),play_status,self); }
![]() |
2010-02-21
, 20:59
|
Posts: 117 |
Thanked: 23 times |
Joined on Aug 2008
@ Hardenberg
|
#8
|
Its a very buggy application currently.
Shake Left/Right and it'll change the track (Next track)
Shake Up/Down and It'll Pause/Play
.
![]() |
2010-02-21
, 21:22
|
Posts: 344 |
Thanked: 73 times |
Joined on Jan 2010
|
#9
|
![]() |
2010-02-21
, 21:31
|
Posts: 127 |
Thanked: 44 times |
Joined on Jan 2010
@ Nottingham
|
#10
|