We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project looks great and clean. However, how do you handle char input? WM_UNICHAR etc.
The text was updated successfully, but these errors were encountered:
Hey @fhoenig, currently for Win32 key events are propigated at:
Win32EventQueue.cpp Line 349
Win32EventQueue.cpp
So should your application need to type out character input you can listen to these events and call xwin::convertKeyToString(xwin::Key key);
xwin::convertKeyToString(xwin::Key key);
if (e.type == xwin::EventType::Keyboard) { xwin::KeyboardData& kd = e.data.keyboard; size_t kid = static_cast<size_t>(kd.key); if (kid < 256) { if (kd.state == xwin::ButtonState::Released) { charBuf += xwin::convertKeyToString(kd.key); } } }
EDIT: I'll update the sister repo's examples to include an instance of character input using ImGui.
Sorry, something went wrong.
No branches or pull requests
Project looks great and clean. However, how do you handle char input?
WM_UNICHAR etc.
The text was updated successfully, but these errors were encountered: