mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-15 06:17:00 +02:00
service: hid: Don't try to vibrate if device isn't initialized
This commit is contained in:
parent
ff084ece75
commit
cc539cac24
3 changed files with 9 additions and 0 deletions
|
|
@ -23,6 +23,10 @@ Result NpadVibrationBase::Deactivate() {
|
|||
return ResultSuccess;
|
||||
}
|
||||
|
||||
bool NpadVibrationBase::IsActive() const {
|
||||
return ref_counter > 0;
|
||||
}
|
||||
|
||||
bool NpadVibrationBase::IsVibrationMounted() const {
|
||||
return is_mounted;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ public:
|
|||
virtual Result Activate();
|
||||
virtual Result Deactivate();
|
||||
|
||||
bool IsActive() const;
|
||||
bool IsVibrationMounted() const;
|
||||
|
||||
protected:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue