Article View: comp.sys.atari.st
Article #35147Re: button events. Wanting to wait for either one or two clicks.
From: Michael B. Vederman
Date: Sun, 20 Nov 1988 14:59
Date: Sun, 20 Nov 1988 14:59
29 lines
1849 bytes
1849 bytes
In article <1988Nov19.180454.563@gpu.utcs.toronto.edu> romwa@gpu.utcs.toronto.edu (Mark Dornfeld) writes:
>
>When using the GEM event manager, is there a way of setting up
>an event which involves clicking one OR two buttons? I
>am thinking of a case like the desktop, where one can select a
>disk by clicking once and get a directory by double-clicking.
If you refer to the documentation on evnt_button, you will note that the
first argument is ev_bclicks, which is 'the number of times the application
is waiting for the mouse button to enter a particular state (ev_bstate)
within a preset time.'
This argument should be 1 or 2, depending on how many clicks you wanna wait
for. The return value ev_breturn is 'the number of times the button
actually entered the desired state within the preset time. This number is
never less than 1 or greater than the number contained in ev_bclicks.'
So, ev_breturn is either 1 (single click) or 2 (double click).
For evnt_multi, the number of button clicks is returned in the last argument,
ev_mbreturn.
- mike
--
for (;;) : Use ATARINET, send an interactive
do_it(c_programmers); : message such as:
: Tell UH-INFO at UHUPVM1 ATARINET HELP
University Atari Computer Enthusiasts : University of Houston UACE
Technical Details
Message-ID:
<702@uhnix2.uh.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!rutgers!bellcore!texbell!uhnix1!uhnix2!uace0References:
<1988Nov19.180454.563@gpu.utcs.toronto.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!rutgers!bellcore!texbell!uhnix1!uhnix2!uace0 From: uace0@uhnix2.uh.edu (Michael B. Vederman) Newsgroups: comp.sys.atari.st Subject: Re: button events. Wanting to wait for either one or two clicks. Keywords: evnt_button, evnt_multi, Laser C Message-ID: <702@uhnix2.uh.edu> Date: 20 Nov 88 14:59:29 GMT References: <1988Nov19.180454.563@gpu.utcs.toronto.edu> Reply-To: uace0@uhnix2.UUCP Organization: University of Houston Lines: 29