Grenz doch einfach den Mauscursor auf dein Fenster ein solange ein Spiel läuft.
Geht so:
Delphi-Quellcode:
var
Rect: TRect;
begin
Rect.Left := Form1.Left;
Rect.Top := Form1.Top;
Rect.Right := Form1.Left + Form1.Width;
Rect.Bottom := Form1.Top + Form1.Height;
ClipCursor(@Rect);
Mit
ClipCursor(nil);
machst du es wieder rückgängig.