ivansafrin/Polycode — Issue #83: InputEvent::charCode always 32 on Windows
Author: mcclure
Created: 2012-01-08 04:46:41+00:00
State: open

In testing, if I look at the charCode field of an InputEvent, it is always 32.
When I look at 3ab1b17bcfd0 PolyWinCore.cpp
```C++
void Win32Core::handleKeyDown(LPARAM lParam, WPARAM wParam) {
lockMutex(eventMutex);
Win32Event newEvent;
newEvent.eventGroup = Win32Event::INPUT_EVENT;
newEvent.eventCode = InputEvent::EVENT_KEYDOWN;
newEvent.keyCode = mapKey(lParam, wParam);
newEvent.unicodeChar = ' ';
win32Events.push_back(newEvent);
unlockMutex(eventMutex);
}
```

newEvent.unicodeChar = ' ';

Whyyyyyyyyyyyyy