1
0
Fork 0

fix numlock/capslock status on focus loss.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3218
This commit is contained in:
Peter Veenstra 2008-09-10 16:20:04 +00:00
parent c994a9a25e
commit 74b5d82ccf

View file

@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: sdl_mapper.cpp,v 1.49 2008-05-26 19:13:42 c2woody Exp $ */
/* $Id: sdl_mapper.cpp,v 1.50 2008-09-10 16:20:04 qbix79 Exp $ */
#include <vector>
#include <list>
@ -2259,7 +2259,8 @@ void MAPPER_UpdateJoysticks(void) {
void MAPPER_LosingFocus(void) {
for (CEventVector_it evit=events.begin();evit!=events.end();evit++) {
(*evit)->DeActivateAll();
if(*evit != caps_lock_event && *evit != num_lock_event)
(*evit)->DeActivateAll();
}
}