Handmade Hero»Forums»Code
Lokit Khemka
4 posts
Day 32 At the end of the day's code, Player is not moving
Edited by Lokit Khemka on
I tried unplugging my controller and using WASD Keys, but the player is not moving. Any help is appreciated.

EDIT: As I was testing my code, it seems my code seems to not read any kind of input. Why is that happening?

EDIT 2: SOLVED by dealing with a warning.
Simon Anciaux
1337 posts
Day 32 At the end of the day's code, Player is not moving
Do you use code you typed or Casey's code ? Did you try running Casey's code to see if you have the same issue ?

Have you tried setting a breakpoint in Win32ProcessPendingMessages and see what is happening there ?

Could you share your win32_handmade.cpp ?
Lokit Khemka
4 posts
Day 32 At the end of the day's code, Player is not moving
Same happened when I ran Casey's code too. But, then I realized it was because of a warning. Since, it was not compiling, I was running an old executable. Once I dealt with the warning, it was working fine.