translated n4th tests to rust

This commit is contained in:
2026-09-07 14:49:29 -05:00
parent c82a0b4e3c
commit 676856dfe1
10 changed files with 1090 additions and 910 deletions
+3 -3
View File
@@ -2,7 +2,7 @@ mod keyboard;
use winit::{
dpi::LogicalSize,
event::{Event, WindowEvent},
event::WindowEvent,
event_loop::{ControlFlow, EventLoop},
};
@@ -16,7 +16,7 @@ use vasm_core::assemble_snippet;
use vcore::cpu::CPU;
use vcore::memory::{Memory, PeekPoke};
use vcore::word::Word;
use winit::event::{DeviceEvent, DeviceId, ElementState, StartCause};
use winit::event::{ElementState, StartCause};
use winit::event_loop::ActiveEventLoop;
use winit::keyboard::PhysicalKey;
use winit::window::{Window, WindowId};
@@ -102,7 +102,7 @@ impl<'a> ApplicationHandler for App<'a> {
}
}
fn window_event(&mut self, event_loop: &ActiveEventLoop, window_id: WindowId, event: WindowEvent) {
fn window_event(&mut self, event_loop: &ActiveEventLoop, _window_id: WindowId, event: WindowEvent) {
match event {
WindowEvent::CloseRequested => event_loop.exit(),