Oops!

What I actually meant to say, was that I couldn't get the wheel
(which is located where the middle button normally is) to work.
:-/

Joe.

> -----Original Message-----
> From: da Silva, Joe 
> Sent: Tuesday, October 02, 2001 5:33 PM
> To:   '[EMAIL PROTECTED]'
> Subject:      RE: ALT
> 
> Please see below ...
> 
> Joe.
> 
>       -----Original Message-----
>       From:   Witold Filipczyk [SMTP:[EMAIL PROTECTED]]
>       Sent:   Tuesday, October 02, 2001 4:10 PM
>       To:     [EMAIL PROTECTED]
>       Subject:        Re: ALT
> 
>       On Mon, Oct 01, 2001 at 05:54:19PM +0200, Michael Polak wrote:
>       > [EMAIL PROTECTED] wrote:
>       > 
>       > > Hi!
>       > > Here is example program, how to use ALT with svgalib:
>       > > 
>       > > #include <vgakeyboard.h>
>       > > #include <stdio.h>
>       > > 
>       > > int main() {
>       > >     char *buf;
>       > >     keyboard_init();
>       > >     do {
>       > >             keyboard_update();
>       > >             buf = keyboard_getstate();
>       > >             if ((buf[SCANCODE_LEFTALT] | buf[SCANCODE_RIGHTALT])
>       > >             & buf[SCANCODE_P]) fprintf(stderr,"ALT P\r");
>       > >             else fprintf(stderr,"     \r");
>       > >     }
>       > >     while (buf[SCANCODE_ESCAPE]==KEY_NOTPRESSED);
>       > >     keyboard_close();
>       > >     exit(0);
>       > > }
>       > > 
>       > > You could use SCROLL_LOCK, too.
>       > 
>       > 
>       > I am using different method - switching console to raw input mode
>       > using settermios() function. Do you think it will be compatible ?
> 
>       Probably svgalib use termios.h internally (look at sources of
> svgalib!),
>       but using <vgakeyboard.h> is easier and self-explanatory.
>       If you want write X11 version SDL is better choice than GGI.
>       SDL have good documentation in HTML.  (In arachne-ggi middle button
> of mouse
>       doesn't work for me ).
> 
>       [Joe da Silva]  
> 
>       Hmmm, that reminds me ... I couldn't get the middle
>       mouse button to do anything either (yes, I did use
>       the "special" modified Cute Mouse driver ;-).
> 
                ------ snip ------

Reply via email to