Re: [AD] Inconsistent behaviour with mouse coordinates in different windowed modes in Windows. |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: alleg-developers@xxxxxxxxxx
- Subject: Re: [AD] Inconsistent behaviour with mouse coordinates in different windowed modes in Windows.
- From: Victor <vwss1984@xxxxxxxxxx>
- Date: Thu, 8 Dec 2005 22:07:08 -0300 (ART)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.br; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=nEQ1WbjLtL/2BkIvV5aZuw9JCVk0UuKQlJdGbUl7dgo3mDx8sDQ9FMP/R0JwCl0ugpsZuEqy1jyKccxyDSP87KzE27yCEihscVUMEiustRTcgj1SGcDcRVxgPTcnenydfkbZ4tj4BWv5fU21MtyWNNByPpTDyUAokSV8q+bAU5w= ;
1. What is the version of your Allegro?
2. What is the type of your Windows?
3. Not sure, but i think that the mouse coordinates when outside the
window are undefined, but it could be better if they are defined to
something (like the last values). It would be nice too if we had a
function like "is_mouse_inside_window();".
Victor Williams Stafusa da Silva
--- Andrei Ellman <ae-a-alleg@xxxxxxxxxx> wrote:
> Hi,
>
> When I am running a Windowed-mode Allegro app in Windows and I read
> the
> mouse-coordinates form mouse_x & mouse_y and I move the mouse outside
> of
> the Window, I get different behaviour depending on the GFX mode.
>
> If the mode is GDIB (GFX_GDI), mouse_x & mouse_y will always show the
>
> last coordinates returned by mouse_x & mouse_y when the mousecursor
> was
> inside the window, but if the mode is DXWN (GFX_DIRECTX_WIN), mouse_x
> &
> mouse_y will nearly always return -4096, -4096 (but sometimes, they
> will
> behave the same way as in GDIB)
>
> Is the behaviour when the mouse exits the window supposed to be to
> always show the last coordinates returned by mouse_x & mouse_y, or
> is
> the behavour supposed to be undefined?
>
> AE.
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through
> log files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD
> SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> --
> https://lists.sourceforge.net/lists/listinfo/alleg-developers
>
_______________________________________________________
Yahoo! doce lar. Faça do Yahoo! sua homepage.
http://br.yahoo.com/homepageset.html