From: Pavel Klinkovsky <pavel.klinkovsky@gmail.com>
To: 9fans@9fans.net
Subject: Re: [9fans] Mouse inverted Y-axis
Date: Fri, 22 Feb 2013 12:50:59 +0000 [thread overview]
Message-ID: <aa1d9dde-b902-4080-8ff4-2efad034e97c@googlegroups.com> (raw)
In-Reply-To: <CAF5gyqqQ=U1E=Od5eqJd2PPwY7psVLeMrXv+i=c8eWBJpbP9rA@mail.gmail.com>
> 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
next prev parent reply other threads:[~2013-02-22 12:50 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-16 13:58 Eduard Streahlau
2012-12-16 14:17 ` cinap_lenrek
2012-12-16 14:27 ` erik quanstrom
2012-12-17 9:40 ` Pavel Klinkovsky
2013-02-21 13:39 ` Pavel Klinkovsky
2013-02-22 9:57 ` Pavel Klinkovsky
2013-02-22 10:42 ` erik quanstrom
2013-02-22 12:50 ` Pavel Klinkovsky [this message]
2013-02-22 13:30 ` erik quanstrom
2013-02-22 14:43 ` Pavel Klinkovsky
-- strict thread matches above, loose matches on Subject: below --
2012-12-14 4:36 Eduard Streahlau
2012-12-14 9:40 ` Pavel Klinkovsky
2012-12-14 1:27 Eduard Streahlau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aa1d9dde-b902-4080-8ff4-2efad034e97c@googlegroups.com \
--to=pavel.klinkovsky@gmail.com \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).