🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by acevedo Thu, 25 Apr 1991 17:41
Re: checking if mouse on a screen
#2011
Author: 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"?
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads