#Input.get_joy_button_string replacement?
1 messages · Page 1 of 1 (latest)
Yo. Also interested in this. Have you found out anything about this yet @weary sinew ? Was this functionality abandoned?
haven't found anything yet, starting to think i'll have to implement the button string list on my own
just checked 3.5 code and it seems to be just a table lookup
i guess we can just copy that
wonder why it was removed
reimplementing it isn't too hard but i do wonder that as well
i'll close this as solved tomorrow if no one has more insight on the change
seems it was deleted here: https://github.com/godotengine/godot/pull/43591
we can still get the string with InputEvent.as_text(), though it's a different longer string
https://docs.godotengine.org/en/stable/classes/class_inputevent.html#class-inputevent-method-as-text
Inherits: Resource< RefCounted< Object Inherited By: InputEventAction, InputEventFromWindow, InputEventJoypadButton, InputEventJoypadMotion, InputEventMIDI, InputEventShortcut Generic input event. ...
and there's no inverse operation "from_text", like there was before for get_joy_button_index_from_string
i guess that still needs to be re-implemented
oh wow that was from 2020
well i can see what as_text displays and either use it or roll my own
thanks for digging this up
yeah, not clear why they decided to remove the string and from_string methods, but i guess we're on our own!