Replies: 1 comment 4 replies
-
Hi, The problem of converting a string to a key is that it is not obvious how to treat multiple possibility: For |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to save custom control layouts to a config file, but there seems to be no easy way to convert a string value to ebiten.Key in the API reference so I have no clue how to actually set the keys in game after loading my config.
The opposite is incredibly easy with ebiten.Key.String() and I see keyNameToKeyCode() in the ebiten source, but it's unexported so I can't use it without just duplicating the entire function
Beta Was this translation helpful? Give feedback.
All reactions