🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.epoch.misc
Article #2011

Re: checking if mouse on a screen

#2011
From: acevedo
Date: Thu, 25 Apr 1991 17:41
15 lines
1118 bytes
  1. To tell if the mouse is inside a screen, use the (query-mouse)
  function, and check the return values against the size of the screen.
  Remember that (epoch::screen-height) and (epoch::screen-width) take an
  optional screen argument, as does (query-mouse).

Actually, I would have to check (equal (query-mouse) (query-mouse
screen-I-want-mouse-to-be-on)), and check the screen size.  But this
isn't fully reliable ...

When I do C-h f query-mouse I get:

  Query the location of the X-window cursor. Returns the list (X Y MOD-STATE). Character coordinates

What is the "MOD-STATE"?
Technical Details
Message-ID: <9104251741.AA08586@boom>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!unreplyable!garbage

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc7ee,9f67f139a2ceaaeb
X-Google-Attributes: gidfc7ee,public
X-Google-ArrivalTime: 1991-04-26 02:39:34 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!unreplyable!garbage
From: acevedo@ATHENA.MIT.EDU
Newsgroups: gnu.epoch.misc
Subject: Re: checking if mouse on a screen
Message-ID: <9104251741.AA08586@boom>
Date: 25 Apr 91 17:41:28 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 15