delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/19/21:55:29

From: "Hammy" <darren AT grayce DOT freeserve DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Mouse Events Problem
Date: Wed, 20 Oct 1999 00:04:08 +0100
Organization: Customer of Planet Online
Lines: 14
Message-ID: <7uitf2$qor$1@news8.svr.pol.co.uk>
NNTP-Posting-Host: modem-22.actinium.dialup.pol.co.uk
X-Trace: news8.svr.pol.co.uk 940374306 27419 62.136.44.22 (19 Oct 1999 23:05:06 GMT)
NNTP-Posting-Date: 19 Oct 1999 23:05:06 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Probably not the best newsgroup but heres my problem.
Im trying to write an event manager for a mouse.  The idea I have so far is
this: i have created a structure that holds the coordinates of rectanles for
which a mouse can click in a trigger an event.  Also int he struct I have a
byte for the button that triggers the event, a byte for if the rectangle is
active, and a pointer to a function(the code that is run when event is
triggered).
    I have this structure as a linked list and have ordered it in
active/disable, now, i can image this being rather slow the more events i
have.  So, does anyone know of the a better way to do this?




- Raw text -


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