Connect front panel with emulator

This commit is contained in:
pjht 2024-01-29 11:03:43 -06:00
parent 9706b052cb
commit dd93e414c5
Signed by: pjht
GPG Key ID: CA239FC6934E6F3A

View File

@ -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,