🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #31424

Problem with rodent control

#31424
From: Stephen Jacobs
Date: Tue, 22 Mar 1988 04:31
12 lines
1216 bytes
I have a program that consists, in part, of an outer, non-critical loop
which uses a mouse-button push to tell it to start an inner, time-crit-
ical loop.  The inner loop tracks the mouse position constantly and looks
for button-pushes using vq_mouse().  The outer loop uses evnt_multi() to
wait for the button-push.  Sometimes the result of the inner loop is to go
back to the start of the outer loop, where eventually it's supposed to
wait for the button again.  My problem is that even if I wait with vq_mouse
for the button to be up again, and a few ms more with evnt_timer, control
goes right through the evnt_multi.  Is this akin to the difficulty of mixing
buffered and un-buffered IO?  Is this even real? (I've clobbered my own
program before, with enev more unusual results).  If this is real, is there
a way around it? (And if I've f-ed up again, never mind)
Technical Details
Message-ID: <3899@chinet.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att-cb!att-ih!chinet!saj

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att-cb!att-ih!chinet!saj
From: saj@chinet.UUCP (Stephen Jacobs)
Newsgroups: comp.sys.atari.st
Subject: Problem with rodent control
Keywords: mouse, buttons, AES, VDI
Message-ID: <3899@chinet.UUCP>
Date: 22 Mar 88 04:31:44 GMT
Organization: Chinet - Chicago Public Access UNIX
Lines: 12