From ad77503d953302f22a621093ba359e24526892ec Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Sun, 30 Aug 2026 00:06:39 +0200 Subject: vnf: add support for standard joypads MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This means adding constants so developers can actually trigger which key presses are available at any given read, as well as a simple interface that allows to add button presses and clear them. Signed-off-by: Miquel Sabaté Solà --- crates/runrom/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crates/runrom/src/main.rs') diff --git a/crates/runrom/src/main.rs b/crates/runrom/src/main.rs index 4388766..8f52f4a 100644 --- a/crates/runrom/src/main.rs +++ b/crates/runrom/src/main.rs @@ -27,6 +27,7 @@ fn print_help() { println!(" -h, --help\t\t\tPrint this message and quit."); println!(" -n, --nasm-directory \tPath to the .nasm/ directory."); println!(" -s, --start\t\t\tAddress from where to start (default: reset vector)."); + println!(" -u, --until-address\t\tRun until the given address is met."); println!(" -v, --version\t\t\tPrint version information."); std::process::exit(0); } @@ -163,7 +164,7 @@ fn parse_arguments() -> Args { } None => die("you need to specify a file for the '-n/--nasm' flag".to_string()), }, - "--until-address" => { + "-u" | "--until-address" => { until_address = args.next(); if until_address.is_none() { die("you need to specify a value for the --until-address flag!".to_string()); -- cgit v1.2.3