From e3e7d339bd4e490d459178d7ef237c6c0246505c Mon Sep 17 00:00:00 2001 From: Wayne Warren Date: Sat, 15 Jan 2022 19:46:27 -0700 Subject: [PATCH] Device: introduce system_path() method --- src/sync_stream.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sync_stream.rs b/src/sync_stream.rs index 7ee5455..f3ce73f 100644 --- a/src/sync_stream.rs +++ b/src/sync_stream.rs @@ -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> { self.raw.get_key_state()