# Problems with hidden mousepointer

**URL:** <https://discourse.libsdl.org/t/problems-with-hidden-mousepointer/4850>\
**Category:** SDL Development\
**Created:** [August 5, 2001, 10:34am UTC](https://discourse.libsdl.org/t/problems-with-hidden-mousepointer/4850 "2001-08-05T10:34:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter\_Venis](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/p/958977/32.png) [@Peter\_Venis](https://discourse.libsdl.org/u/Peter_Venis)\
**Post date:** [August 5, 2001, 10:34am UTC](https://discourse.libsdl.org/t/problems-with-hidden-mousepointer/4850/1 "2001-08-05T10:34:01Z")

</div>

I’m using SDL for mouse input to control the view of the player in a 3D  
environment. I’ve hidden the mouse cursor but now the problem is that when I  
move the mouse to much downward then my windows bar appears and the SDL  
window looses focus and doesn’t respond to mouse input. Only when I mouse  
the mouse back up again and press a mousebutton than I regain control.

What might also be important to mention is that this only happens on my  
laptop (touch-pad). I’ve tested my prog on a mini-tower and there this  
problem did not accur.

Any suggestions?

---

<div class="post-metadata">

**Author:** ![slouken](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/ec9cab/32.png) [@slouken](https://discourse.libsdl.org/u/slouken)\
**Post date:** [August 5, 2001, 10:42am UTC](https://discourse.libsdl.org/t/problems-with-hidden-mousepointer/4850/2 "2001-08-05T10:42:02Z")

</div>

> I’m using SDL for mouse input to control the view of the player in a 3D  
> environment. I’ve hidden the mouse cursor but now the problem is that when I  
> move the mouse to much downward then my windows bar appears and the SDL  
> window looses focus and doesn’t respond to mouse input. Only when I mouse  
> the mouse back up again and press a mousebutton than I regain control.

Grab the input with SDL\_WM\_GrabInput()

See ya,  
-Sam Lantinga, Software Engineer, Blizzard Entertainment

---

<div class="post-metadata">

**Author:** ![Peter\_Venis](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/p/958977/32.png) [@Peter\_Venis](https://discourse.libsdl.org/u/Peter_Venis)\
**Post date:** [August 5, 2001, 12:13pm UTC](https://discourse.libsdl.org/t/problems-with-hidden-mousepointer/4850/3 "2001-08-05T12:13:02Z")

</div>

I already was using SDL\_WM\_GrabInput(); It doesn’t help.

Perhaps it’s because of the labtop/touchpad as I mentioned before. If anyone  
got any other ideas or suggestions, please help.

Peter\> ----- Original Message -----

> From: [slouken@devolution.com](mailto:slouken@devolution.com) (Sam Lantinga)  
> To:   
> Sent: Sunday, August 05, 2001 7:41 PM  
> Subject: Re: [SDL] problems with hidden mousepointer
> 
> > > I’m using SDL for mouse input to control the view of the player in a 3D  
> > > environment. I’ve hidden the mouse cursor but now the problem is that  
> > > when I  
> > > move the mouse to much downward then my windows bar appears and the SDL  
> > > window looses focus and doesn’t respond to mouse input. Only when I  
> > > mouse  
> > > the mouse back up again and press a mousebutton than I regain control.
> > 
> > Grab the input with SDL\_WM\_GrabInput()
> > 
> > See ya,  
> > -Sam Lantinga, Software Engineer, Blizzard Entertainment
> > 
> > * * *
> > 
> > SDL mailing list  
> > SDL at [libsdl.org](http://libsdl.org)  
> > [http://www.libsdl.org/mailman/listinfo/sdl](http://www.libsdl.org/mailman/listinfo/sdl)

---

<div class="post-metadata">

**Author:** ![Neil\_Griffiths](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/n/c5a1d2/32.png) [@Neil\_Griffiths](https://discourse.libsdl.org/u/Neil_Griffiths)\
**Post date:** [August 5, 2001, 12:26pm UTC](https://discourse.libsdl.org/t/problems-with-hidden-mousepointer/4850/4 "2001-08-05T12:26:00Z")

</div>

Hi,

> Perhaps it’s because of the labtop/touchpad as I mentioned before. If  
> anyone  
> got any other ideas or suggestions, please help.

Well, is the laptop using standard Windows mouse drivers - and, most  
importantly, is the laptop using the latest version of DirectX, or at least  
the same version as on your other machine?

Neil.
