You know, I hadn't even thought of checking my DirectInput code. See, I've been working through this book (Advanced 2D Game Development by Jonathan S. Harbour) so I assumed its code was correct.
Taking a closer look, however, and the book code was right all along; the mistake was on my part.
Thanks for the help. I feel rather stupid for making such an idiotic and simple mistake...but it's all better now.