From mint-bounce@lists.fishpool.fi  Wed Aug 25 09:17:03 2010
To: Jo Even Skarstein <joska@online.no>
Subject: Re: [MiNT] AES related question: How to keep track if my  application is receiving =?UTF-8?Q?input=3F?=
MIME-Version: 1.0
Content-Type: text/plain;
 charset=UTF-8
Content-Transfer-Encoding: 7bit
Date: Wed, 25 Aug 2010 15:13:48 +0200
From: m0n0 <ole@monochrom.net>
Cc: <mint@lists.fishpool.fi>
Reply-To: ole@monochrom.net
In-Reply-To: <FAF2BA1B4F1443DF85A9009FFFD8ED14@mercatus.local>
References: <611C3B470A9C41BBB2E509D0240FE5EA@mercatus.local>
 <0002c138.01c73262939e@smtp.freeola.net>
 <092ed0763bd1932924f163c30cdd45b1-EhVcX1lFRQVaRwYcDTpQCEFddQZLVF5dQUNBAjBTXF5bVkYMXUF0AVU6XF1XQ0IBWVldSQ==-webmailer2@server04.webmailer.hosteurope.de>
 <FAF2BA1B4F1443DF85A9009FFFD8ED14@mercatus.local>
Message-ID: <1df34ccc0a809ae5bab2dc40b2e29803-EhVcX1lFRQVaRwYcDTpQCEFddQZLVF5dQUNBAjBTXF5bVkYMXUF0AVU6XF1XQ0IGXVpbSA==-webmailer2@server04.webmailer.hosteurope.de>
X-Sender: ole@monochrom.net
User-Agent: Host Europe Webmailer/2.0
X-HE-Access: Yes
X-bounce-key: webpack.hosteurope.de;ole@monochrom.net;1282742028;8daac609;
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-to: mint-bounce@lists.fishpool.fi
X-original-sender: ole@monochrom.net
Precedence: bulk
List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
List-Id: <mint.lists.fishpool.fi>
X-List-ID: <mint.lists.fishpool.fi>
List-subscribe: <mailto:mint-request@lists.fishpool.fi?Subject=subscribe>
List-owner: <mailto:tjhukkan@fishpool.fi>
List-post: <mailto:mint@lists.fishpool.fi>


Am Mittwoch, den 25.08.2010, 15:00 +0200 schrieb "Jo Even Skarstein"
<joska@online.no>:

> The mouse position can be tracked using rectangle events. As for the
> key up event - I agree with others that this is difficult to detect
> cleanly under TOS. You might have to hook into the keyboard vector to
> do this - not a nice thing to do under a multitasking OS!

How should it work? heres the rectangle parameter flags:

flag  specifies the event to wait for as follows:
MO_ENTER Wait for mouse to enter rectangle
MO_LEAVE Wait for mouse to leave rectangle  

So I just could track if the mouse enters or leaves a specific region. 
this would be my solution:

while ( do_poll )
{
  evnt_multi(...);
  graf_mkstate(...);
}

greets,
m


