feat: make 0xFF0F aware of joypad struct interrupt bool
This commit is contained in:
@@ -3,7 +3,17 @@ use bitfield::bitfield;
|
||||
#[derive(Debug, Clone, Copy, Default)]
|
||||
pub struct Joypad {
|
||||
pub status: JoypadStatus,
|
||||
pub interrupt: bool,
|
||||
interrupt: bool,
|
||||
}
|
||||
|
||||
impl Joypad {
|
||||
pub fn interrupt(&self) -> bool {
|
||||
self.interrupt
|
||||
}
|
||||
|
||||
pub fn set_interrupt(&mut self, value: bool) {
|
||||
self.interrupt = value;
|
||||
}
|
||||
}
|
||||
|
||||
bitfield! {
|
||||
|
Reference in New Issue
Block a user