Skip to content

Commit

Permalink
data file locations, read from env variables required, jaffa suggeste…
Browse files Browse the repository at this point in the history
…d place to look
  • Loading branch information
lcuk committed Jul 24, 2009
1 parent 9872d06 commit 063092c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 13 deletions.
3 changes: 3 additions & 0 deletions src/liqapp.c
Expand Up @@ -507,6 +507,9 @@ int liqapp_init(int argc, char* argv[],char *title,char *version)

char buf[FILENAME_MAX+1];


// 20090724_154719 lcuk : todo jaffa says use this: http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html
// 20090724_154726 lcuk : which makes sense really.


//liqapp_log("~~~ Using std folder config");
Expand Down
43 changes: 30 additions & 13 deletions src/liqcell_easyhandler_kinetic.c
Expand Up @@ -63,22 +63,39 @@

if( (args->stroke->pointlast->t - args->stroke->pointfirst->t) > 250 ) //liqstroke_totallength(args->stroke) > 25 )
{

if( (args->mex-args->ox) >= (par->w*0.8) )// && args->mex<par->w)
{
//float my = args->mey;
float my = args->mey;//-args->oy;
int ah = (self->h-par->h);
// self->y p->0 p->h self->h-self->y
// -300 0 480 1700

if( liqstroke_totallength(args->stroke) > 20 )


if( (args->msx-args->ox) >= (par->w*0.8) )
{
if( (args->mex-args->ox) >= (par->w*0.8) )
{
//float my = args->mey;
float my = args->mey;//-args->oy;
int ah = (self->h-par->h);
// self->y p->0 p->h self->h-self->y
// -300 0 480 1700

float mj = my * ((float)ah) / ((float)par->h);
if(mj<0)mj=0;
if(mj>ah)mj=ah;

liqcell_setpos(body,self->x,-mj);
return 1;
}

float mj = my * ((float)ah) / ((float)par->h);
if(mj<0)mj=0;
if(mj>ah)mj=ah;

liqcell_setpos(body,self->x,-mj);
return 1;
if((args->msy-args->oy) >= (par->h*0.8))
{
// 20090724_034021 lcuk : i'd like to try something here..
if( (args->mey-args->oy) >= (par->h*0.8) )
{
// 20090724_034233 lcuk : lets assume that the user has pressed for a time in the lower quadrant of a list
// 20090724_034253 lcuk : which is why we are here now
}
}

}
//#####################################

Expand Down

0 comments on commit 063092c

Please sign in to comment.