Im trying to make a fighting game with motion inputs. Part of that is being able to store directional input + button input in the same variable and store it. I was told that bits/bitmasks are the most optimal way of doing this, but I’m having a hard time understanding it enough to use. Can anyone give me a rundown on how it works or a good resource for me to read?