mirror of
https://github.com/MiSTer-devel/PCFX_MiSTer.git
synced 2026-04-19 03:04:49 +00:00
24 lines
551 B
Systemverilog
24 lines
551 B
Systemverilog
// Core - common definitions
|
|
//
|
|
// Copyright (c) 2026 David Hunter
|
|
//
|
|
// This program is GPL licensed. See COPYING for the full license.
|
|
|
|
package core_pkg;
|
|
|
|
// Joypad controller inputs
|
|
typedef struct packed {
|
|
bit l, r, u, d; // directions
|
|
bit [6:1] b; // numbered buttons
|
|
bit select, run; // named buttons
|
|
bit mode1, mode2; // switches: A=0, B=1
|
|
} joypad_t;
|
|
|
|
// Human-Machine Interface inputs
|
|
typedef struct packed {
|
|
// Joypad controllers
|
|
joypad_t jp1, jp2;
|
|
} hmi_t;
|
|
|
|
endpackage
|