Re: sin()/cos()/tan() for kernel code? '_ 'a

2007-02-12 Thread Jordan Sissel
As it stands right now, moused is not the proper place for this. sysmouse(4) only speaks relative coordinates and has no idea about absolute positioning that have the opportunity of doing with tablets and touchpads. I highly recommend this be implemented as an X driver, unless you have no intenti

Re: sin()/cos()/tan() for kernel code? '_ 'a

2007-02-12 Thread Alexander Leidinger
Quoting Stephen Montgomery-Smith <[EMAIL PROTECTED]> (from Sun, 11 Feb 2007 12:00:12 -0600 (CST)): On Sun, 11 Feb 2007, Stephen Montgomery-Smith wrote: On Sun, 11 Feb 2007, Daniel Eischen wrote: Can't you do this in userland? Teach moused? Since you will only need sin and cos evalu

Re: sin()/cos()/tan() for kernel code? '_ 'a

2007-02-11 Thread Stephen Montgomery-Smith
On Sun, 11 Feb 2007, Stephen Montgomery-Smith wrote: On Sun, 11 Feb 2007, Daniel Eischen wrote: On Sun, 11 Feb 2007, Eugene M. Kim wrote: Hello all, I am writing a mouse device driver for my Wacom tablet (Intuos 2 9x12). The tablet comes with a mouse and I managed to get valid coordinat

Re: sin()/cos()/tan() for kernel code? '_ 'a

2007-02-11 Thread Stephen Montgomery-Smith
On Sun, 11 Feb 2007, Daniel Eischen wrote: On Sun, 11 Feb 2007, Eugene M. Kim wrote: Hello all, I am writing a mouse device driver for my Wacom tablet (Intuos 2 9x12). The tablet comes with a mouse and I managed to get valid coordinate data from the device. However, unlike usual mice, the

Re: sin()/cos()/tan() for kernel code? '_ 'a

2007-02-11 Thread Daniel Eischen
On Sun, 11 Feb 2007, Eugene M. Kim wrote: Hello all, I am writing a mouse device driver for my Wacom tablet (Intuos 2 9x12). The tablet comes with a mouse and I managed to get valid coordinate data from the device. However, unlike usual mice, the coordinate system is tied not to the orientatio

Re: sin()/cos()/tan() for kernel code? '_ 'a

2007-02-11 Thread Hans Petter Selasky
On Sunday 11 February 2007 09:39, Eugene M. Kim wrote: > Hello all, > > I am writing a mouse device driver for my Wacom tablet (Intuos 2 9x12). > The tablet comes with a mouse and I managed to get valid coordinate data > from the device. However, unlike usual mice, the coordinate system is > tied

Re: sin()/cos()/tan() for kernel code? '_ 'a

2007-02-11 Thread Peter Jeremy
On 2007-Feb-11 00:39:29 -0800, "Eugene M. Kim" <[EMAIL PROTECTED]> wrote: >Fortunately the mouse also provides orientation data along with >coordinate data, so the correct cursor movement could be calculated from >it. The problem: The calculation needs trigonometry, but there seems to >be no math

Re: sin()/cos()/tan() for kernel code? '_ 'a

2007-02-11 Thread Kip Macy
Trigonometry is seldom done with fixed point, which is the only way to do it in the kernel (using the FPU is a no-no). I would write a perl script to generate a lookup table for those functions - paste it into a header and use that. HTH. -Kip On 2/11/07, Eugene M. Kim <[EMAIL PROTECTED]> wrot

sin()/cos()/tan() for kernel code? '_ 'a

2007-02-11 Thread Eugene M. Kim
Hello all, I am writing a mouse device driver for my Wacom tablet (Intuos 2 9x12). The tablet comes with a mouse and I managed to get valid coordinate data from the device. However, unlike usual mice, the coordinate system is tied not to the orientation of the mouse itself, but to the tablet, wh