ok.. i dunno why this is like it is now..


http://nakoon-game.de/Nakoon_Game/Artworks/Grafiken/Launcher_Prob.png

Red = active area
Yellow = Area the mouse works

i tried to lock the mouse to the engines window.. wich i thought is the active area.. with this code:
Code:
RECT rect;
	GetClientRect(hWnd,&rect);
	ClientToScreen(hWnd,&rect);
	ClientToScreen(hWnd,&rect.right);
	ClipCursor(&rect);



But the mouse is only locked inside the yellow area.. so..
WHY?

the mouse_cursor can be locked to the active area with clamp. But the not the system cursor ._.


Or better.. How can i lock the system cursor to the active area, too?


i fixed that little problem with help of superkuh by using:
Code:
DEBUG_VAR(mouse_cursor.x,10);
		DEBUG_VAR(mouse_cursor.y,30);
		mouse_pos.x = mouse_cursor.x-40;
		mouse_pos.y = mouse_cursor.y-196;



But that just fixed the position problem..
There´s still the problem.. that the mouse can´t be hold inside the active area...

That wouldn´t be that problem.. if the mouse_map keeps active all over the border..

But mouse_map is active in the active_area only.. so.. this shit happens:

http://nakoon-game.de/Nakoon_Game/Artworks/Grafiken/Unbenannt.png


Seems to me, that video_border + mouse isn´t thought through really well ^^"


Last edited by Espér; 06/28/11 19:03. Reason: changed title.. ._.

Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<