🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #3690

Mouse interface

#3690
From: Anders Eklund
Date: Thu, 08 Oct 1992 12:06
29 lines
1760 bytes
Hi there,

  I have a question about how to build in a mouse interface in a program,
preferably in C. I can think of three different ways how the mouse
routines might work. Either by an interrupt where a function and parameters 
are put in some registers and an answer is returned in registers.
Another way maybe could be that you get an address stored in registers by an
interrupt call and further communications is done by calling the mouse
routines directly. The last way I can think of is that you by an interrupt
call store an address to one of your own function and the mouse routines
call this function with some information when something happens. Is one
of these approaches correct? If that is the case, which one. I would
appreciate if someone could send me a mail with as much information
as possible to build a mouse interface in a program.

Thanks in advance
Anders
--


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         ___
        /   /       /                --  Anders Eklund  anders@his.se --
       /__ /___ ___/___ ___ ___      --  Connectionist Research Group --
      /   //  //  //__//   /__       --  Computer Science  Department --
    _/   //  //__//__ /   ___/       --  University of Skovde, Sweden --

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Technical Details
Message-ID: <ANDERS.92Oct8130654@ipcsun1.his.se>
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!unipalm!uknet!mcsun!sunic!seunet!his!anders

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!unipalm!uknet!mcsun!sunic!seunet!his!anders
From: anders@ipcsun1.his.se (Anders Eklund)
Newsgroups: comp.os.msdos.programmer
Subject: Mouse interface
Message-ID: <ANDERS.92Oct8130654@ipcsun1.his.se>
Date: 8 Oct 92 12:06:54 GMT
Sender: news@his.UUCP
Distribution: comp.os.msdos.programmer
Organization: University of Skoevde, Skoevde
Lines: 29