doc: use correct identifier for InputEventJoystick{Motion, Button}
This commit is contained in:
parent
b6b33e8886
commit
6de2b9d864
|
@ -107,13 +107,13 @@ InputEvent::operator String() const {
|
||||||
|
|
||||||
} break;
|
} break;
|
||||||
case JOYSTICK_MOTION: {
|
case JOYSTICK_MOTION: {
|
||||||
str+= "Event: JoyMotion ";
|
str+= "Event: JoystickMotion ";
|
||||||
str=str+"Axis: "+itos(joy_motion.axis)+" Value: " +rtos(joy_motion.axis_value);
|
str=str+"Axis: "+itos(joy_motion.axis)+" Value: " +rtos(joy_motion.axis_value);
|
||||||
return str;
|
return str;
|
||||||
|
|
||||||
} break;
|
} break;
|
||||||
case JOYSTICK_BUTTON: {
|
case JOYSTICK_BUTTON: {
|
||||||
str+= "Event: JoyButton ";
|
str+= "Event: JoystickButton ";
|
||||||
str=str+"Pressed: "+itos(joy_button.pressed)+" Index: " +itos(joy_button.button_index)+" pressure "+rtos(joy_button.pressure);
|
str=str+"Pressed: "+itos(joy_button.pressed)+" Index: " +itos(joy_button.button_index)+" pressure "+rtos(joy_button.pressure);
|
||||||
return str;
|
return str;
|
||||||
|
|
||||||
|
|
|
@ -2300,8 +2300,8 @@ Error GDScriptLanguage::complete_code(const String& p_code, const String& p_base
|
||||||
"# Key",
|
"# Key",
|
||||||
"# MouseMotion",
|
"# MouseMotion",
|
||||||
"# MouseButton",
|
"# MouseButton",
|
||||||
"# JoyMotion",
|
"# JoystickMotion",
|
||||||
"# JoyButton",
|
"# JoystickButton",
|
||||||
"# ScreenTouch",
|
"# ScreenTouch",
|
||||||
"# ScreenDrag",
|
"# ScreenDrag",
|
||||||
"# Action"
|
"# Action"
|
||||||
|
|
|
@ -433,7 +433,7 @@ void DocData::generate(bool p_basic_types) {
|
||||||
|
|
||||||
if (i==Variant::INPUT_EVENT) {
|
if (i==Variant::INPUT_EVENT) {
|
||||||
static const char* ie_type[InputEvent::TYPE_MAX]={
|
static const char* ie_type[InputEvent::TYPE_MAX]={
|
||||||
"","Key","MouseMotion","MouseButton","JoyMotion","JoyButton","ScreenTouch","ScreenDrag","Action"
|
"","Key","MouseMotion","MouseButton","JoystickMotion","JoystickButton","ScreenTouch","ScreenDrag","Action"
|
||||||
};
|
};
|
||||||
cname+=ie_type[j];
|
cname+=ie_type[j];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue