From f95faba80f9473f4c09ef507767ce263cd5bfbed Mon Sep 17 00:00:00 2001 From: Drakulix Date: Sat, 15 Apr 2017 22:53:09 +0200 Subject: [PATCH] Add libinput documentation --- src/backend/libinput.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/backend/libinput.rs b/src/backend/libinput.rs index 1a5d3b2..7609d81 100644 --- a/src/backend/libinput.rs +++ b/src/backend/libinput.rs @@ -14,6 +14,10 @@ struct SeatDesc { pointer: (u32, u32), } +/// Libinput based `InputBackend`. +/// +/// Tracks input of all devices given manually or via a udev seat to a provided libinput +/// context. pub struct LibinputInputBackend { context: Libinput, devices: Vec, @@ -23,6 +27,8 @@ pub struct LibinputInputBackend { } impl LibinputInputBackend { + /// Initialize a new `LibinputInputBackend` from a given already initialized libinput + /// context. pub fn new(context: Libinput, logger: L) -> Self where L: Into> {