From dd93e414c55045cac8739401a5fe287a2e11fd6f Mon Sep 17 00:00:00 2001 From: pjht Date: Mon, 29 Jan 2024 11:03:43 -0600 Subject: [PATCH] Connect front panel with emulator --- src/frontpanel.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/frontpanel.rs b/src/frontpanel.rs index ea848bd..8c1d0c3 100644 --- a/src/frontpanel.rs +++ b/src/frontpanel.rs @@ -1,21 +1,17 @@ -use std::{path::Path, sync::mpsc::Sender}; +use std::path::Path; -use device_query::Keycode; use eframe::{ - egui::{self, Id, Painter, Response, Sense, TextureOptions, Ui, Widget}, - epaint::{pos2, vec2, Color32, Pos2, Rect, TextureHandle}, + egui::{self, Sense, TextureOptions, Ui, Widget}, + epaint::{vec2, Pos2, Rect, TextureHandle}, }; -use crate::{audio::AudioMessage, cpu::Status}; +use crate::cpu::Status; use self::switch::SwitchState; pub mod led; pub mod switch; -const NULL_UV: Rect = Rect::from_min_max(pos2(0.0, 0.0), pos2(1.0, 1.0)); -const NULL_TINT: Color32 = Color32::WHITE; - #[derive(Clone, Copy, Debug)] pub enum ActionSwitch { RunStop,