mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-26 10:03:48 +00:00
Character type fixes for building with clang-cl
This commit is contained in:
parent
01471c9ef3
commit
4386ababbe
2 changed files with 12 additions and 2 deletions
|
|
@ -137,14 +137,14 @@ static void _keyboardEvent(Win32Window* window,UINT message, WPARAM wParam, WPAR
|
|||
&& window->getKeyboardTranslation()
|
||||
&& !window->shouldNotTranslate( torqueMods, newVirtKey ) )
|
||||
{
|
||||
U16 chars[ 64 ];
|
||||
wchar_t chars[ 64 ];
|
||||
dMemset( chars, 0, sizeof( chars ) );
|
||||
|
||||
S32 res = ToUnicode( keyCode, scanCode, keyboardState, chars, sizeof( chars ) / sizeof( chars[ 0 ] ), 0 );
|
||||
|
||||
// This should only happen on Window 9x/ME systems
|
||||
if( res == 0 )
|
||||
res = ToAscii( keyCode, scanCode, keyboardState, chars, 0 );
|
||||
res = ToAscii( keyCode, scanCode, keyboardState, (LPWORD)chars, 0 );
|
||||
|
||||
if( res >= 1 )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue