You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yours is not a C code error but a V error. If you are using the official sdl module I think you need change Key by sdl.KeyCode.
When you use Key alone the compiler thinks Key is located in your module (which is called input) so the V error report says I can't found input.Key. In case you have a struct called Key you need to include the module where is located.
V doctor:
What did you do?
./v -g -o vdbg cmd/v && ./vdbg keyboard.v
What did you expect to see?
not get a c error from the is_just_pressed function
What did you see instead?
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
Huly®: V_0.6-21629
The text was updated successfully, but these errors were encountered: