1786018745

This commit is contained in:
2026-08-06 14:19:05 +02:00
parent fc76b8c556
commit afbaced27c

View File

@@ -74,9 +74,16 @@ impl Platform for Trekstor {
.unwrap();
}
if ctx.input.is_down(KeyCode::BTN_TOUCH) {
self.window
.try_dispatch_event(WindowEvent::PointerMoved {
position: LogicalPosition::new(ctx.input.x as f32, ctx.input.y as f32),
})
.unwrap();
}
self.window.draw_if_needed(|renderer| {
dbg!("Rendering");
dbg!(renderer.render(&mut buffer1, window_width as usize));
renderer.render(&mut buffer1, window_width as usize);
for (i, px) in buffer1.into_iter().enumerate() {
let x = (i % window_width as usize) as u32;
@@ -84,7 +91,6 @@ impl Platform for Trekstor {
let pixel = Rgb8Pixel::from(px);
let c = Color::from((pixel.r, pixel.g, pixel.b, 255));
// println!("{x}x{y}: {:?}", c);
ctx.screen.framebuffer.set_pixel(x, y, c);
}