mirror of
https://github.com/modelec/GameController.git
synced 2026-03-18 21:40:43 +01:00
default case
This commit is contained in:
@@ -71,10 +71,13 @@ public:
|
||||
case SDL_CONTROLLERBUTTONDOWN:
|
||||
// std::cout << "Button down " << static_cast<int>(event.cbutton.button) << std::endl;
|
||||
this->sendMessage("gc;strat;button down;" + std::to_string(event.cbutton.button) + "\n");
|
||||
break;
|
||||
case SDL_CONTROLLERBUTTONUP:
|
||||
// std::cout << "Button up " << static_cast<int>(event.cbutton.button) << std::endl;
|
||||
this->sendMessage("gc;strat;button up;" + std::to_string(event.cbutton.button) + "\n");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user