nanogui: rotate mouse movements 90 degree in nano-X
Subject:
RE: [nanogui] rotate mouse movements 90 degree in nano-X
From:
####@####.####
Date:
7 Feb 2007 14:21:44 +0000
Message-Id: <20070207113940.w8fcravezv4840g0@mail.utfpr.edu.br>
Hi Markus,
I don't know it this is the best solution, but I've altered the
mouse driver Read() function like this:
+---- Original code -----+------ Modified Code -------+
| |#ifdef LCD_LANDSCAPE_MODE |
| ... | *dx = delta_x; |
| *dx = delta_x; | *dy = delta_y; |
| *dy = delta_y; |#else |
| ... | *dx = delta_y; |
| | *dy = - delta_x; |
| |#endif |
+------------------------+----------------------------+
This finished the job of rotating the mouse movements. I also
apendded the following lines to my display driver Open() routine:
#ifdef LCD_PORTRAIT_MODE
psd->portrait = MWPORTRAIT_LEFT;
psd->xvirtres = psd->yres;
psd->yvirtres = psd->xres;
psd->orgsubdriver = &lcd_subdriver;
set_subdriver(psd, &fbportrait_left, FALSE);
#endif // LCD_PORTRAIT_MODE
but from your description it looks like you've got it done already.
Hope it helps, and if you (or someone else) come up with a better
solution please let me know!
Cheers
Ricardo.
-----Mensagem original-----
De: Markus Rähle ####@####.####
Enviada em: quarta-feira, 7 de fevereiro de 2007 06:27
Para: ####@####.####
Assunto: [nanogui] rotate mouse movements 90 degree in nano-X
hi,
I read on your page (http://www.linuxhacker.org/cgi-bin/ezmlm-cgi/5/6963) that
it is possible
to rotate the nano-X server (nano-X -L). I tried it and everything had rotated
90°, the mouse
pointer too.
But the movment of the mousepointer did not rotate. Is there a command to rotate
the
movement of the mouse? Or do I have to change the mouse driver? Thanks for your
help
markus
---------------------------------------------------------------------
To unsubscribe, e-mail: ####@####.####
For additional commands, e-mail: ####@####.####
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.