fix un-fullscreening windows changing the coords, fix touchscreen not redrawing framebuffer

This commit is contained in:
stjet
2025-05-02 01:07:15 +00:00
parent c1afd3f33e
commit dfe065d26a
3 changed files with 22 additions and 11 deletions

View File

@@ -118,6 +118,7 @@ fn init(framebuffer: Framebuffer, framebuffer_info: FramebufferInfo) {
let mut y: Option<usize> = None;
for line in reader.lines() {
let line = line.unwrap();
println!(" "); //without any stdout, on my phone, for some reason the framebuffer doesn't get redrawn to the screen
if line.contains("ABS_X), value ") || line.contains("ABS_Y), value ") {
let value: Vec<_> = line.split("), value ").collect();
let value = value[value.len() - 1].parse::<usize>().unwrap();