Device: introduce system_path() method
This commit is contained in:
parent
3a425349ec
commit
e3e7d339bd
1 changed files with 5 additions and 0 deletions
|
@ -253,6 +253,11 @@ impl Device {
|
|||
self.raw.supported_sounds()
|
||||
}
|
||||
|
||||
/// Returns the system path used to open the device.
|
||||
pub fn system_path(&self) -> &Path {
|
||||
self.raw.system_path()
|
||||
}
|
||||
|
||||
/// Retrieve the current keypress state directly via kernel syscall.
|
||||
pub fn get_key_state(&self) -> io::Result<AttributeSet<Key>> {
|
||||
self.raw.get_key_state()
|
||||
|
|
Loading…
Reference in a new issue