code cleanup

This commit is contained in:
punkrockguy318 2008-07-17 04:39:28 +00:00
parent eb54d81e5e
commit 5db27f23fd
1 changed files with 34 additions and 33 deletions

View File

@ -58,7 +58,8 @@ int main(int argc, char* argv[])
cout << event.jbutton.button << endl;
return 1;
case SDL_JOYHATMOTION:
if(event.jhat.value != SDL_HAT_CENTERED) {
if(event.jhat.value != SDL_HAT_CENTERED)
{
cout << "BUTTC_JOYSTICK" << endl;
cout << event.jhat.which << endl;
cout << (0x2000 | ((event.jhat.hat & 0x1F) << 8) |