delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/18/08:10:58

Date: Fri, 18 Jul 1997 08:10:42 -0400 (EDT)
Message-Id: <1.5.4.16.19970718174252.35bf7d48@giasbga.vsnl.net.in>
Mime-Version: 1.0
To: djgpp AT delorie DOT com
From: Chirayu Krishnappa <chirayu AT radiolink DOT net>
Subject: Allegro mouse pointer with windows

Hi,


I want to devolop a windowing system using allegro. The mouse should have
diff. cusor shapes depending on the window it is over. Now I felt that it wd
be wise to divide the screen into and array of 4x4 or 8x8 blocks, with
each array element storing a pointer (or index) to an allegro mouse sprite.
Then, each window sets the relevant
parts of this array to point to whatever sprite it likes. The advantage is
that this is faster than sending a message/signal to a function with mouse
coords, and that switching the cursor shape. Also, less hassle. However,
this requires shawn to support it (or something similair) in his 3.0
version. Is this worth asking for? Is there a better method? 

Also, Shawn, if u r reading this, is it possible in allegro 3.0 to allow the
user to define a rectange within which the pointer should never be visible
(it should be invisible whenever it is inside the rect, and
visible/invisible outside). I had done this for text mode in 16-bit and
found it extremely helpful.

Bye,

Chirayu Krishnappa:
------------------
e-mail: chirayu AT poboxes DOT com
Phone:  91 080 3332616.
============================================================================
==========

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019