Day 6: No diff between keyup/keydwn #SHAMEOWL

EDIT: I am leaving this as a shaming lesson for myself and others. For some reason my bitwise >> was supposed to be << and I missed this... #owlofshame :side:

Hey awesome peeps,
I am in process of doing day 6 and reached the keyboard input stuff. I set up my code pretty much exactly the same, as such:
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
case WM_SYSKEYUP:
	{
		uint32 VKCode = WParam;
		
		bool wasKeyDown = ((LParam & (1 >> 30)) != 0); //use expression since results will be 0 or bit 30, not 1;
		bool isKeyDownNow = ((LParam & (1 >> 31)) == 0);

/.../

else if (VKCode == VK_LEFT)
		{
			OutputDebugString("LEFT is:");
			if (isKeyDownNow)
			{
				OutputDebugString(" IS down!\n");
			}
			if (wasKeyDown)
			{
				OutputDebugString(" WAS down!\n");
			}
                 }


And I'm actually getting double 'IS down' messages, apparently on pressed and released, using the LEFT arrow on my kb.

I'm pretty baffled, my stuff is setup, as far as I can tell exactly as in the vid...any ideas?

Thank you!

Edited by Dana Fortier on