|
|
@ -208,8 +208,8 @@ char plKeyboardDevice::KeyEventToChar( plKeyEventMsg *msg ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
short code = msg->GetKeyCode(); |
|
|
|
short code = msg->GetKeyCode(); |
|
|
|
char c = 0; |
|
|
|
char c = 0; |
|
|
|
unsigned char *kbState = TRACKED_NEW unsigned char[256]; |
|
|
|
unsigned char kbState[256]; |
|
|
|
unsigned char *buffer = TRACKED_NEW unsigned char[256]; |
|
|
|
unsigned char buffer[256]; |
|
|
|
UINT scanCode; |
|
|
|
UINT scanCode; |
|
|
|
int retVal; |
|
|
|
int retVal; |
|
|
|
|
|
|
|
|
|
|
@ -320,9 +320,6 @@ char plKeyboardDevice::KeyEventToChar( plKeyEventMsg *msg ) |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
delete [] kbState; |
|
|
|
|
|
|
|
delete [] buffer; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return c; |
|
|
|
return c; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|