Compare commits
2 commits
681e83646b
...
8a3fb8e035
Author | SHA1 | Date | |
---|---|---|---|
gallant | 8a3fb8e035 | ||
gallant | 80124967ab |
|
@ -3,9 +3,10 @@ use smithay::backend::input::{
|
|||
InputBackend
|
||||
};
|
||||
|
||||
impl InputBackend for Waycrab{}
|
||||
impl InputBackend for Waycrab{
|
||||
fn dispatch_new_events<F>(
|
||||
&mut self,
|
||||
callback: F) -> Result<(),InputBackend::EventError>{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
mod backend;
|
||||
mod state;
|
||||
mod input;
|
||||
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
|
|
14
src/state.rs
14
src/state.rs
|
@ -1,14 +1,12 @@
|
|||
#[derive(Debug)]
|
||||
struct Waycrab {
|
||||
uptime: std::time::Instant
|
||||
pub struct Waycrab {
|
||||
uptime: std::time::Instant,
|
||||
}
|
||||
|
||||
impl Waycrab{
|
||||
pub fn new() -> Self
|
||||
{
|
||||
impl Waycrab {
|
||||
pub fn new() -> Self {
|
||||
Waycrab {
|
||||
uptime: std::time::Instant::now()
|
||||
|
||||
}
|
||||
uptime: std::time::Instant::now(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue