Could someone please tell me what is wrong with my code below? I've been reading through this book on SDL (Focus on SDL) and it keeps referencing members and functions and stuff without giving specific examples of how to use them. It's really frustrating.
The book mentions that you can use SDLMod to see if the user is pressing down any modifier keys, but there are no actual example programs in the book that do this, so I tried to figure it out myself. I just replaced "sym" with "mod" to get the modifier keys, but that didn't work. I'm just trying to determine if the user is pressing down ctrl-r or ctrl-t.
Yep, that fixed it. I'm not really sure why, though. I'm pretty new to C++ and the only uses of the "bitwise and" that I know of are for references, and the double && to combine booleans.
Anyway, the important thing is I know how to do it now. Thanks for your help!