Esenthel
Administrator
|
Re: Rendering pixel buffer
ah ok i see now, in EE the win_posi means the position in the desktop
ill add also position in the window function
|
|
07-05-2009 03:56 PM |
|
SONB
Member
|
Re: Rendering pixel buffer
Yesss, that would be great!
When can I expect the update?
|
|
07-05-2009 04:03 PM |
|
Esenthel
Administrator
|
Re: Rendering pixel buffer
don't know but in the meantime you can do this manually:
(include windows headers)
POINT point={Ms.win_posi.x, Ms.win_posi.y};
ScreenToClient((HWND)App.hwnd(),&point);
now point.x and point.y are in your window space
|
|
07-05-2009 04:10 PM |
|
SONB
Member
|
Re: Rendering pixel buffer
Hm, sorry, but the coordinates are still wrong...
|
|
07-05-2009 04:39 PM |
|
Esenthel
Administrator
|
Re: Rendering pixel buffer
they should be correct
arent you receiving 0,0 in top left corner?
mayb just the drawing isnt in the right place
|
|
07-05-2009 06:19 PM |
|
SONB
Member
|
Re: Rendering pixel buffer
Esenthel Wrote:arent you receiving 0,0 in top left corner?
Nope...
Quote:mayb just the drawing isnt in the right place
Drawing?... You mean the cursor?.. Erm, I don't know :?
EDIT: And if I move the mouse to the limit, it goes up to x=1680 and y=1050, although my window is 1024x768 big :?
|
|
07-05-2009 06:42 PM |
|
Esenthel
Administrator
|
Re: Rendering pixel buffer
Quote:Nope...
so what values are you receiving when the mouse is in the top left position on the
-desktop
-window
what is your current code for accessing the mouse position?
Quote:Drawing?... You mean the cursor?.. Erm, I don't know
no, the flash Image (using Image::draw)
|
|
07-05-2009 09:14 PM |
|
SONB
Member
|
Re: Rendering pixel buffer
Your code works!.. But only when I delete the application flag APP_MS_EXCLUSIVE. I'm getting correct coordinates with correct window resolution.
BUT in this mode I can't move the camera freely, because when the mouse reaches the limits of the desktop, the camera stops moving. Is there a way to fix this limitation?
Note: running my app in window mode, not fullscreen.
|
|
07-05-2009 09:44 PM |
|
Esenthel
Administrator
|
Re: Rendering pixel buffer
yes you can clip the mouse rectangle
Ms.clip(NULL,1) if i remember correctly
|
|
07-05-2009 10:54 PM |
|