godotengine / godotengine/godot-docs

C# Enums don't match globalscope

Open
#5,322 7 comments 0 reactions 0 assignees View on GitHub
area:class reference bug topic:dotnet
Dominant language
reStructuredText
Stars
5.7k
Forks
3.8k
Avg merge
1d 20h
Merged PRs (30d)
25

Description

**Your Godot version:** 3.3.3 (stable)

**Issue description:** I was trying to use Input.IsKeyPressed(KeyList ENUM) in my C# code and the enum list in the docs completely doesn't match how to call it in C#. For example, it lists KEY_D as the "D" key but you actually invoke it as KeyList.D. I'd find that mildly annoying and not report worthy, until I had to use shift and control. They do not seem to be KeyList.SHIFT, KeyList.KEY_SHIFT or literally anything else I could think of. I tried looking at the Godot repo and I cannot for the life of me find where its defined. This is way too opaque and it sucks :(

**URL to the documentation page:** https://docs.godotengine.org/en/stable/classes/class_%40globalscope.html#enum-globalscope-keylist

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.