Increase PoolBox to Version 0.9.0

This commit is contained in:
2024-07-29 13:36:06 -05:00
parent 9bed73b22e
commit 20ea619cc4
12 changed files with 119 additions and 54 deletions

View File

@@ -50,6 +50,10 @@ namespace JabyEngine {
return RawController::header.rumble1;
}
bool is_connected() const {
return RawController::header.state != RawController::State::Disconnected;
}
bool is_useable() const {
const auto type = RawController::get_type();
return ((RawController::header.state == RawController::State::Stable) && (type == ControllerType::Controller || type == ControllerType::DualShock));