-
Simple question probably I can't figure out how to get constants / enums for In my
...but all it gives me are some special keys like What am I missing? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You're very close. The syntax you're trying with If you had tried
This warning only appears in the build output and not the error list till after your compile due to a roslyn bug. Anyway, that warning gives you a clue that the constant has been elevated to an enum. You should request the enum name in NativeMethods.txt and find the constant there in your C# code. |
Beta Was this translation helpful? Give feedback.
You're very close. The syntax you're trying with
VK_*
successfully matches constants that begin with that prefix, which is why you're getting something, though not what you want.If you had tried
VK_RETURN
itself, your compilation would produce a warning:This warning only appears in the build output and not the error list till after your compile due to a roslyn bug.
Anyway, that warning gives you a clue that the constant has been elevated to an enum. You should request the enum name in NativeMethods.txt and find the constant there in your C# code.