code cleanup
This commit is contained in:
parent
eb54d81e5e
commit
5db27f23fd
|
@ -58,7 +58,8 @@ int main(int argc, char* argv[])
|
||||||
cout << event.jbutton.button << endl;
|
cout << event.jbutton.button << endl;
|
||||||
return 1;
|
return 1;
|
||||||
case SDL_JOYHATMOTION:
|
case SDL_JOYHATMOTION:
|
||||||
if(event.jhat.value != SDL_HAT_CENTERED) {
|
if(event.jhat.value != SDL_HAT_CENTERED)
|
||||||
|
{
|
||||||
cout << "BUTTC_JOYSTICK" << endl;
|
cout << "BUTTC_JOYSTICK" << endl;
|
||||||
cout << event.jhat.which << endl;
|
cout << event.jhat.which << endl;
|
||||||
cout << (0x2000 | ((event.jhat.hat & 0x1F) << 8) |
|
cout << (0x2000 | ((event.jhat.hat & 0x1F) << 8) |
|
||||||
|
|
Loading…
Reference in New Issue