mirror of
https://github.com/transistorfet/moa.git
synced 2024-06-03 08:29:30 +00:00
26 lines
398 B
Rust
26 lines
398 B
Rust
|
|
||
|
#[derive(Copy, Clone, Debug, PartialEq)]
|
||
|
pub enum ControllerDevice {
|
||
|
A,
|
||
|
B,
|
||
|
C,
|
||
|
D,
|
||
|
}
|
||
|
|
||
|
#[derive(Copy, Clone, Debug, PartialEq)]
|
||
|
pub enum ControllerEvent {
|
||
|
DpadUp(bool),
|
||
|
DpadDown(bool),
|
||
|
DpadLeft(bool),
|
||
|
DpadRight(bool),
|
||
|
ButtonA(bool),
|
||
|
ButtonB(bool),
|
||
|
ButtonC(bool),
|
||
|
ButtonX(bool),
|
||
|
ButtonY(bool),
|
||
|
ButtonZ(bool),
|
||
|
Start(bool),
|
||
|
Mode(bool),
|
||
|
}
|
||
|
|