Hi Group,

Could someone please answer Pradeep's query. I have no experience of
vga_waitevent, keyboard_update or keyboard_getstate (I use mouse_update
and vga_getkey) so I cannot give advice on this without researching the
problem and I am very busy at the moment.

Regards
Sergio


Forwarded message:
> Date: Wed, 12 Jul 2000 23:11:37 -0400
> From: Pradeep Tumati <[EMAIL PROTECTED]>
> Subject: mouse - svgalib
> Message-id: <[EMAIL PROTECTED]>
> 
> Hello sir,
> here is a sample program. It combines all the raw text, vga mode and the 
> mouse. Can you please tell me where should I put the vga_waitevent to make 
> this work...
> int main( )
> {
>       int a,b ;
>       char *ret;
>       a=vga_init( );
>       if (a==0)
>       {
>               vga_setmode(4);
>               vga_setmousesupport(1);
>               b=keyboard_init( );
>               if (b==0)
>               {
>                       keyboard_update( );
>                       ret=keyboard_getstate( );
>                       while(!ret[SCANCODE_ESCAPE])
>                       {
>                               ret=keyboard_getstate( );
>                               x=mouse_getx( );
>                               y= mouse_gety( );
>       /* I guess it is here, if it is so, what about the keyboard update event 
> in the next line?
>                               keyboard_update( );
>                       }
>               }
>       }
> }
> 
> 

Reply via email to