You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
584 B
38 lines
584 B
use crsn::asm::data::{Rd, Wr};
|
|
use crsn::asm::data::literal::Value;
|
|
|
|
#[derive(Clone, Debug, Eq, PartialEq)]
|
|
pub enum ScreenOp {
|
|
ScreenInit {
|
|
width: Rd,
|
|
height: Rd,
|
|
},
|
|
SetPixel {
|
|
x: Rd,
|
|
y: Rd,
|
|
color: Rd,
|
|
},
|
|
GetMouse {
|
|
x: Wr,
|
|
y: Wr,
|
|
},
|
|
TestKey {
|
|
pressed: Wr,
|
|
code: Rd,
|
|
},
|
|
TestMouse {
|
|
pressed: Wr,
|
|
button: Rd,
|
|
},
|
|
Update,
|
|
Erase {
|
|
color: Rd,
|
|
},
|
|
Blit {
|
|
force: Rd,
|
|
},
|
|
SetOpt {
|
|
opt: Value,
|
|
val: Rd,
|
|
},
|
|
}
|
|
|