[SDL] How to disable [ALT] Windows window menu popup???

Peter Mulholland darkmatter at freeuk.com
Thu Oct 5 01:46:52 PDT 2006


Hello SlntHero,

Wednesday, October 4, 2006, 11:41:04 PM, you wrote:

> One of the keys to use is the [ALT] key.
>  
> Problem is that sometimes when pressing [ALT] key, the window's menu  popups
> and disrupts the game's action.
>  
> Is there a way in SDL to disable [ALT] Windows window menu  popup???

I don't know if theres any mechanism in SDL to allow it, but what you
need to do is trap the WM_SYSKEYDOWN and WM_SYSKEYUP messages in the
window handler to prevent them triggering the menus from keyboard
shortcuts.

-- 
Best regards,
 Peter                            mailto:darkmatter at freeuk.com





More information about the SDL mailing list