idk
This commit is contained in:
@@ -1,7 +1,4 @@
|
|||||||
use std::{
|
use std::{thread::sleep, time::Duration};
|
||||||
thread::{self, sleep},
|
|
||||||
time::Duration,
|
|
||||||
};
|
|
||||||
|
|
||||||
mod rgba;
|
mod rgba;
|
||||||
#[cfg(not(feature = "dev"))]
|
#[cfg(not(feature = "dev"))]
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ use std::rc::Rc;
|
|||||||
use evdev::KeyCode;
|
use evdev::KeyCode;
|
||||||
use linfb::shape::Color;
|
use linfb::shape::Color;
|
||||||
use slint::platform::software_renderer::{MinimalSoftwareWindow, RepaintBufferType, Rgb565Pixel};
|
use slint::platform::software_renderer::{MinimalSoftwareWindow, RepaintBufferType, Rgb565Pixel};
|
||||||
use slint::platform::{Platform, WindowEvent};
|
use slint::platform::{EventLoopProxy, Platform, WindowEvent};
|
||||||
use slint::{LogicalPosition, PhysicalSize, Rgb8Pixel, WindowSize};
|
use slint::{EventLoopError, LogicalPosition, PhysicalSize, Rgb8Pixel, WindowSize};
|
||||||
|
|
||||||
use self::input::InputState;
|
use self::input::InputState;
|
||||||
use self::screen::Screen;
|
use self::screen::Screen;
|
||||||
@@ -29,6 +29,24 @@ impl Trekstor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct TrekstorEventProxy {
|
||||||
|
// .. ????
|
||||||
|
}
|
||||||
|
|
||||||
|
impl EventLoopProxy for TrekstorEventProxy {
|
||||||
|
fn quit_event_loop(&self) -> Result<(), EventLoopError> {
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
|
||||||
|
fn invoke_from_event_loop(
|
||||||
|
&self,
|
||||||
|
event: Box<dyn FnOnce() + Send>,
|
||||||
|
) -> Result<(), EventLoopError> {
|
||||||
|
// dafuq am i supposed to do with this ??
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl Platform for Trekstor {
|
impl Platform for Trekstor {
|
||||||
fn create_window_adapter(
|
fn create_window_adapter(
|
||||||
&self,
|
&self,
|
||||||
|
|||||||
Reference in New Issue
Block a user