> i generally rebuild everything from the top directory.

I see, good to know. Thanks.

In any case I think there is a bug in kb.c.
The function 'ptrbootpvals' seems correct:

        if(c > 3 && ch->buf[3] == 1)            /* up */
                b |= 0x08;
        if(c > 3 && ch->buf[3] == 0xff)         /* down */
                b |= 0x10;

Wheel-up should set the flag 0x08.
Wheel-down should set the flag 0x10.


But the function 'ptrrepvals' seems buggy:
        if(c > 3 && hidifcval(&kd->templ, KindWheel, 0) > 0)    /* up */
                b |= 0x10;
        if(c > 3 && hidifcval(&kd->templ, KindWheel, 0) < 0)    /* down */
                b |= 0x08;

Wheel-up sets the flag 0x10.
Wheel-down sets the flag 0x08.

Pavel

Reply via email to