mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
input: add missing has_vibration() method to InputDevice
This commit is contained in:
parent
962e6e31e4
commit
58623b09bd
@ -118,6 +118,16 @@ has_tracker() const {
|
||||
return ((_flags & IDF_has_tracker) != 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the device has vibration motors that can be controlled by
|
||||
* calling set_vibration().
|
||||
*/
|
||||
INLINE bool InputDevice::
|
||||
has_vibration() const {
|
||||
LightMutexHolder holder(_lock);
|
||||
return ((_flags & IDF_has_vibration) != 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the device may be able to provide information about its
|
||||
* battery life.
|
||||
|
@ -149,6 +149,7 @@ PUBLISHED:
|
||||
INLINE bool has_pointer() const;
|
||||
INLINE bool has_keyboard() const;
|
||||
INLINE bool has_tracker() const;
|
||||
INLINE bool has_vibration() const;
|
||||
INLINE bool has_battery() const;
|
||||
|
||||
INLINE PointerData get_pointer() const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user