mouse - svgalib (fwd)

Search this archive.

From: Sergio Masci (sergio@titan.demon.co.uk)
Date: Thu 13 Jul 2000 - 14:44:05 IDT


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 <ptumati@vt.edu>
> Subject: mouse - svgalib
> Message-id: <4.3.2.7.0.20000712231019.00b056a0@mail.vt.edu>
> 
> 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( );
> 			}
> 		}
> 	}
> }
> 
> 


This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:23 IST