Talk:SDL:Tutorials:Keyboard Input using an Event Loop

From GPWiki

ref: edit changing bitwise & to equality operator

"Switched & (which technically works but also gives a lot of false positives) to == in SDLMod comparison code" I have reverted the edit as the docs state that modifiers are bitwise or'ed and therefore the code was using the correct operator, if you feel this is incorrect please provide some evidence of these false positives and maybe a post to the sdl mailing list to check if this is the correct behaviour. thanks (Liam 08:32, 11 January 2009 (EST))

Oh, you're right. I was looking at the SDLK_ values, not the KMOD_ values, and somehow the two got mixed up in my head. I'm so sorry about the mixup, the existing code was right all along, and thank you for taking the time to look at the docs. --70.110.224.93 17:02, 11 January 2009 (EST)


Protection

The article page has been protected due to repeated spamming. Newer versions of MediaWiki allow the protection to target a user group and a duration yet this version does not, so it will need unlocking at some point in the future. If before the unlock time anybody would like to edit this page yet does not have privileges please add a note here and the page will be unlocked.(Liam 07:02, 14 January 2009 (EST)}