LCDproc development and user support list

Text archives Help


[Lcdproc] example menu?


Chronological Thread 
  • From: peter AT adpm.de (Peter Marschall)
  • Subject: [Lcdproc] example menu?
  • Date: Sat Jul 8 16:50:02 2006

Hi Jannis,

On Thursday, 6. July 2006 20:04, Jannis Achstetter wrote:
> OK, (GOOD) NEWS:
> I forgot some lines in the config-file:
>
> # set the axis map
> Map_Axis1neg=Up
> Map_Axis1pos=Down
> # set the button map
> Map_Button1=Enter
> Map_Button2=Escape
>
> and then the buttons worked, the axis didn't. I digged into the code
> and found:
> if ((js.value > -20000) || (js.value < 20000) || (js.number >= 2 *
> p->axes)) {
> return NULL;
> }
> which doesn't make much sense (because it's always true (greater than
> -20000 and smaller than 20000).
> I fixed it to:
> if (((js.value > -20000) && (js.value < 20000)) || (js.number >= 2 *
> p->axes)) {
> return NULL;
> }
>
> and now the axis work. I don't know wether it has been fixed in CVS (I
> used 0.5.0) but if not please fix it (file server/drivers/joy.c)

thanks for the report and the patch.
I committed it to CVS (stable as well as MAIN).

Thanks
Peter

--
Peter Marschall
peter AT adpm.de




Archive powered by MHonArc 2.6.18.

Top of page