cge_nes 0.1.2

Cycle-accurate NES (Nintendo Entertainment System) emulator library: CPU, PPU, cartridge, input, and iNES ROM loading.
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::FrameEvent;

impl FrameEvent {
    /// Combines two frame events, updating self if it currently represents no event.
    pub fn join(&mut self, other: Self) {
        if *self == Self::None {
            *self = other;
        }
    }
}