-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
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
Keyboard input not working (KeyboardEvent.key is 0) #1
Comments
wait I did just realise that I actually updated to the current DPF |
if you use vst2 or vst3, some events come as part of the plugin spec key handling instead of native window handling. that might explain the weird values. best would be to try in the standalone and see if it works there first. |
we also had some key event fixes on latest dpf + widgets, so best to update those in this repo too. I can do that now |
ok updated to latest DPF as per 001d107 |
It does work standalone!! but it still does not work under Bitwig :( Tested with VST2, VST3 and CLAP. Also, I just found out that keyboard events work just fine with VST3 under Ableton Live!! What gives? Given my previous experiences I would expect Ableton to have worse key handling behavior than Bitwig :o I guess this is a host issue? It is receiving the key events though.. it just has the event's key set to 0? I'm not sure what could cause this. I'll try to log out the raw WM_KEYDOWN events and get back to you. edit: Under Ableton pressing Ctrl (with no other inputs) seems to paste in the box. That's super weird |
On Windows 11, under Bitwig Studio using VST3. Built the plugin. Keyboard input didn't work.
Using a UK English keyboard layout (but it is also broken with Korean and US English key inputs).
So I investigate:
Added a little test on the ImGuiWidget's onKeyboard(..):
typing 'abcdefg' gives the following in
engine.log
:Looks like maybe a pugl issue? I'm really not sure. The keycode is correctly reported at least, so I can assume US keyboard layout for now and just assign
event.key
based on the keycode & modifiers.Here's the bitwig
engine.log
for '1234567890' which is really weird:the reported
event.key
values are in the Unicode private use area range? '1' becomesU+E009
. And '9' becomes U+003D ("=" It even types an equals sign in the text field!!)Any insight would be appreciated, but for now I'm just going to fill in
event.key
based onevent.keycode
:)The text was updated successfully, but these errors were encountered: