▲ 1 r/gameenginedevs
I started working on a 2D game engine in c#.
u/Big_Joke_8504 — 9 days ago
I started working on a 2D game engine in c#.
Hi all, I am making a game engine using Monogame. Is there any (simple-ish) way to convert a string to a Key (e.g. "a" = Keys.A)? I have considered creating two functions (one for each direction) that just return the correct things but that seems overly complicated.
EDIT: I solved my issue by just using my own Keys enum and mapping it to monogame keys