What is the proper #include for the InputKeyboardSourceEventArgs ? #10096
-
i want to hook the
but i can't find the the type of and how can i do to hook the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Well, the most important thing to note here is that the sample is wrong in regards to the InputKeyboardSourceEventArgs type. The documentation for the KeyDown event shows that what it has is a Microsoft.UI.Input.KeyEventArgs parameter. This is also reflected in the C++/WinRT headers.
Notice the reinterpret_cast's type that it is converting to. |
Beta Was this translation helpful? Give feedback.
Well, the most important thing to note here is that the sample is wrong in regards to the InputKeyboardSourceEventArgs type.
The documentation for the KeyDown event shows that what it has is a Microsoft.UI.Input.KeyEventArgs parameter. This is also reflected in the C++/WinRT headers.