stride3d / stride

Stride (formerly Xenko), a free and open-source cross-platform C# game engine.
https://stride3d.net
MIT License
6.58k stars 950 forks source link

Pass raw keyboard information in KeyEvents #454

Open makotech222 opened 5 years ago

makotech222 commented 5 years ago

In integrating the Ultralight GUI framework, there is a need to pass the raw keyboard event data, such as (in windows) WindowsMessage, lParam, wParam. For other platforms, will need virtual key code, scan code, and similar MessageType.

Describe the solution you'd like Expose these properties in the KeyEvent class.

Describe alternatives you've considered In my current windows-only game, i'm hooking into the WndProc function to get them manually.

Eideren commented 4 years ago

I think this enhancement is out of scope for this project; this is a really niche requirement and wouldn't fit well within the InputSystem. You don't even have to hook into WndProc for this, you could recreate that data on your side from xenko/stride's input system. That's my two cents though, feel free to ignore me, I could be in the wrong here.