The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
SDL recieve input while in background
dos350


Joined: 18 Dec 2014
Posts: 2
HI, i know about the hint

SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS,"1");

and its great,

what i want is some way to get keyboard and mouse input in background , is there some way to do this with just sdl? or would i have to use some win32 ,

if anyone has any information please post here, thanks in advance!
SDL recieve input while in background
brightening-eyes


Joined: 18 Jun 2015
Posts: 21
Location: tehran, iran
as far as i know, you can use keyboard and mouse hooks
google SetWindowsHookEx and look MSDN for this

۱۳۹۵-۰۱-۳۱ ۳:۰۹ −۰۷:۰۰ گرینویچ, dos350:
Quote:
HI, i know about the hint

SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS,"1");

and its great,

what i want is some way to get keyboard and mouse input in background , is
there some way to do this with just sdl? or would i have to use some win32
,

if anyone has any information please post here, thanks in advance!





_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org