Connect front panel with emulator
This commit is contained in:
parent
9706b052cb
commit
dd93e414c5
@ -1,21 +1,17 @@
|
|||||||
use std::{path::Path, sync::mpsc::Sender};
|
use std::path::Path;
|
||||||
|
|
||||||
use device_query::Keycode;
|
|
||||||
use eframe::{
|
use eframe::{
|
||||||
egui::{self, Id, Painter, Response, Sense, TextureOptions, Ui, Widget},
|
egui::{self, Sense, TextureOptions, Ui, Widget},
|
||||||
epaint::{pos2, vec2, Color32, Pos2, Rect, TextureHandle},
|
epaint::{vec2, Pos2, Rect, TextureHandle},
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::{audio::AudioMessage, cpu::Status};
|
use crate::cpu::Status;
|
||||||
|
|
||||||
use self::switch::SwitchState;
|
use self::switch::SwitchState;
|
||||||
|
|
||||||
pub mod led;
|
pub mod led;
|
||||||
pub mod switch;
|
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)]
|
#[derive(Clone, Copy, Debug)]
|
||||||
pub enum ActionSwitch {
|
pub enum ActionSwitch {
|
||||||
RunStop,
|
RunStop,
|
||||||
|
Loading…
Reference in New Issue
Block a user