dummy_rustwlc/
input.rs

1//! Contains methods for interacting with the pointer
2//! and keyboard of wlc.
3
4pub mod pointer {
5//! Methods for interacting with the mouse
6    use super::super::types::{Point};
7
8    /// Gets the current position of the mouse.
9    pub fn get_position() -> Point {
10        let point = Point { x: 0, y: 0 };
11        return point;
12    }
13
14    pub fn get_position_v2() -> (f64, f64) {
15        (0.0,0.0)
16    }
17
18    /// Sets the current mouse position. Required on mouse move callback.
19    pub fn set_position(point: Point) {
20    }
21
22    pub fn set_position_v2(_: f64, _: f64) {}
23}
24
25pub mod keyboard {
26//! Methods for interacting with the keyboard
27    use super::super::types::{KeyboardModifiers};
28    use super::super::xkb::Keysym;
29
30    /// Get currently held keys.
31    /// # Panics
32    /// All the time, this function hasn't been implemented yet
33    pub fn get_current_keys<'a>() -> &'a[u32] {
34        unimplemented!();
35    }
36
37    /// Gets a keysym given a key and modifiers.
38    pub fn get_keysym_for_key(key: u32, modifiers: KeyboardModifiers) -> Keysym {
39        unimplemented!()
40    }
41
42    /// Gets a UTF32 value for a given key and modifiers.
43    pub fn get_utf32_for_key(key: u32, modifiers: KeyboardModifiers) -> u32 {
44        unimplemented!()
45    }
46}