Small request: get current NUM lock status


#1

would be nice to have the current NUM lock status


#2

Not such a small request, really, it’d involve a lot of research and testing on all the different platforms. And on some platforms it may not even be possible.


#3

yes you are right, just for the beginning…

Windows:

bool SystemStats::GetCurrentNumLockState() 
{ 
	return GetKeyState( VK_NUMLOCK ) & 1 == 1;
};

#4

MacOS : http://lists.apple.com/archives/Carbon-dev/2009/Oct/msg00135.html


#5

For Linux
http://www.net-security.org/article.php?id=83