mirror of
https://github.com/godotengine/godot.git
synced 2024-12-09 10:09:20 +08:00
Merge pull request #57812 from piiertho/bugfix/add-none-enum-global-constants
This commit is contained in:
commit
a51f724b8b
@ -168,6 +168,7 @@ void register_global_constants() {
|
||||
BIND_CORE_ENUM_CONSTANT(INLINE_ALIGNMENT_IMAGE_MASK);
|
||||
BIND_CORE_ENUM_CONSTANT(INLINE_ALIGNMENT_TEXT_MASK);
|
||||
|
||||
BIND_CORE_ENUM_CLASS_CONSTANT(Key, KEY, NONE);
|
||||
BIND_CORE_ENUM_CLASS_CONSTANT(Key, KEY, SPECIAL);
|
||||
BIND_CORE_ENUM_CLASS_CONSTANT(Key, KEY, ESCAPE);
|
||||
BIND_CORE_ENUM_CLASS_CONSTANT(Key, KEY, TAB);
|
||||
@ -422,6 +423,7 @@ void register_global_constants() {
|
||||
BIND_CORE_ENUM_CLASS_CONSTANT(KeyModifierMask, KEY_MASK, KPAD);
|
||||
BIND_CORE_ENUM_CLASS_CONSTANT(KeyModifierMask, KEY_MASK, GROUP_SWITCH);
|
||||
|
||||
BIND_CORE_ENUM_CLASS_CONSTANT(MouseButton, MOUSE_BUTTON, NONE);
|
||||
BIND_CORE_ENUM_CLASS_CONSTANT(MouseButton, MOUSE_BUTTON, LEFT);
|
||||
BIND_CORE_ENUM_CLASS_CONSTANT(MouseButton, MOUSE_BUTTON, RIGHT);
|
||||
BIND_CORE_ENUM_CLASS_CONSTANT(MouseButton, MOUSE_BUTTON, MIDDLE);
|
||||
@ -472,6 +474,7 @@ void register_global_constants() {
|
||||
BIND_CORE_ENUM_CLASS_CONSTANT(JoyAxis, JOY_AXIS, SDL_MAX);
|
||||
BIND_CORE_ENUM_CLASS_CONSTANT(JoyAxis, JOY_AXIS, MAX);
|
||||
|
||||
BIND_CORE_ENUM_CLASS_CONSTANT(MIDIMessage, MIDI_MESSAGE, NONE);
|
||||
BIND_CORE_ENUM_CLASS_CONSTANT(MIDIMessage, MIDI_MESSAGE, NOTE_OFF);
|
||||
BIND_CORE_ENUM_CLASS_CONSTANT(MIDIMessage, MIDI_MESSAGE, NOTE_ON);
|
||||
BIND_CORE_ENUM_CLASS_CONSTANT(MIDIMessage, MIDI_MESSAGE, AFTERTOUCH);
|
||||
|
@ -1284,6 +1284,9 @@
|
||||
<constant name="INLINE_ALIGNMENT_TEXT_MASK" value="12" enum="InlineAlignment">
|
||||
A bit mask for [code]INLINE_ALIGNMENT_TO_*[/code] alignment constants.
|
||||
</constant>
|
||||
<constant name="KEY_NONE" value="0" enum="Key">
|
||||
Enum value which doesn't correspond to any key. This is used to initialize [enum Key] properties with a generic state.
|
||||
</constant>
|
||||
<constant name="KEY_SPECIAL" value="16777216" enum="Key">
|
||||
Keycodes with this bit applied are non-printable.
|
||||
</constant>
|
||||
@ -2040,6 +2043,9 @@
|
||||
<constant name="KEY_MASK_GROUP_SWITCH" value="1073741824" enum="KeyModifierMask">
|
||||
Group Switch key mask.
|
||||
</constant>
|
||||
<constant name="MOUSE_BUTTON_NONE" value="0" enum="MouseButton">
|
||||
Enum value which doesn't correspond to any mouse button. This is used to initialize [enum MouseButton] properties with a generic state.
|
||||
</constant>
|
||||
<constant name="MOUSE_BUTTON_LEFT" value="1" enum="MouseButton">
|
||||
Left mouse button.
|
||||
</constant>
|
||||
@ -2184,6 +2190,9 @@
|
||||
<constant name="JOY_AXIS_MAX" value="10" enum="JoyAxis">
|
||||
The maximum number of game controller axes: OpenVR supports up to 5 Joysticks making a total of 10 axes.
|
||||
</constant>
|
||||
<constant name="MIDI_MESSAGE_NONE" value="0" enum="MIDIMessage">
|
||||
Enum value which doesn't correspond to any MIDI message. This is used to initialize [enum MIDIMessage] properties with a generic state.
|
||||
</constant>
|
||||
<constant name="MIDI_MESSAGE_NOTE_OFF" value="8" enum="MIDIMessage">
|
||||
MIDI note OFF message. See the documentation of [InputEventMIDI] for information of how to use MIDI inputs.
|
||||
</constant>
|
||||
|
Loading…
Reference in New Issue
Block a user