From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@9fans.net Date: Fri, 22 Feb 2013 12:50:59 +0000 From: Pavel Klinkovsky Message-ID: Content-Type: text/plain; charset=ISO-8859-1 References: Subject: Re: [9fans] Mouse inverted Y-axis Topicbox-Message-UUID: 1d5aa05c-ead8-11e9-9d60-3106f5b1d025 > 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