Subject: | IsKeyPressed file (guitest.xs) |
Hi,
I noticed that IsKeyPressed does not use the full power of
the GetAsyncKeyState function, so i propose this patch.
Here the patch for guitest.xs (i attached my version of the file to this mail)
441a442,453
Show quoted text
> BOOL IsDigitString(const char *s)
> {
> if(s == NULL || *s == 0)
> return FALSE;
>
> while(*s && isdigit(*s)) {
> s++;
> }
>
> return *s == 0 ? TRUE : FALSE;
> }
>
1503,1504c1515,1516
< if (len >= 3)
< name[3]=NUL;
---
Show quoted text> /*if (len >= 3)
> name[3]=NUL;*/
1508a1521,1523
Show quoted text> } else if (IsDigitString(name)) {
> OutputDebugString("Trying integer\n");
> RETVAL = GetAsyncKeyState(atoi(name));
HTH
--esskar (esskar@cpan.org)
Perl: This is perl, v5.8.7 built for MSWin32-x86-multi-thread
OS: WindowsNT SK 1 5 x86
Message body is not shown because it is too large.