Hello tei,

I guess it should look like that ;)  -

    if GetForegroundWindow <> HL_WINDOW_HANDLE
    {
      MoveCameraByMouse();
    }

Tuesday, September 16, 2003, 6:41:49 PM, you wrote:
t> I run "hl.exe -window"

t> problem:

t> my hl.exe (46/1.1.1.0) not free the mouse with console down.
t> To free the mouse, you need to use a menu option... but then.. mouse
t> not work ingame!

t> Some code in hl.exe center the mouse every frame to "window_center_x,
t> window_center_y". Will be nice if this code detect if
t> key_dest!=key_game and avoid that. If the focus is other application,
t> or the console is down, is not needed to move the mouse cursor to the
t> center of screen.

t> I guess the line at hl.exe that center the mouse looks like:
t>        SetCursorPos (window_center_x, window_center_y);

t> maybe can be changed to:

t> if (key_dest == key_game)
t>        SetCursorPos (window_center_x, window_center_y);


Best regards,
 Slava


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to