Learning Assembly, #28

Today I started implementing controller input. This feels familiar, checking each button and doing stuff depending on which is pressed. One thing which I find odd is checking multiple buttons at once. How do I check if two or more buttons are pressed? I can change the bitfield I’m using to include both buttons, but then I have to handle it as a separate case. I normally use a player movement vector and let each button contribute to the final direction, but it’s not clear to me how to do that in assembly, or if it’s even a good idea in this case.

Leave a comment

Your email address will not be published. Required fields are marked *


Your data is processed in accordance with my privacy policy. Comments are manually approved and may take a while to appear.