Skip to content
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

Update input_examples.rst #6460

Closed
wants to merge 1 commit into from
Closed

Conversation

ktyldev
Copy link

@ktyldev ktyldev commented Dec 6, 2022

The C# InputKeyEvent doesn't have a .Keycode property - it has .Scancode.

The C# `InputKeyEvent` doesn't have a `.KeyCode` property - it has `.ScanCode`.
https://docs.godotengine.org/en/stable/classes/class_inputeventkey.html#class-inputeventkey
@raulsntos
Copy link
Member

The master branch contains the documentation for 4.0.

The scancode property was renamed to keycode in godotengine/godot#18020. As a result of this property being renamed in Core, it is also automatically changed in the C# bindings that are automatically generated.

@Calinou
Copy link
Member

Calinou commented Dec 6, 2022

Closing per @raulsntos' comment. The current code is correct.

The stable documentation for 3.x is here (notice /stable in the URL instead of /latest): https://docs.godotengine.org/en/stable/tutorials/inputs/input_examples.html

@Calinou Calinou closed this Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants