Register
Handmade Hero»Forums»Code»Day 32 At the end of the day's code, Player is not moving
Lokit Khemka
4 posts
Day 32 At the end of the day's code, Player is not moving
1 month, 1 week ago Edited by Lokit Khemka on Aug. 19, 2020, 2:38 a.m.
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
882 posts
Day 32 At the end of the day's code, Player is not moving
1 month, 1 week ago
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
1 month ago
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.