fix initial joypad + serial values

This commit is contained in:
Alex Janka 2023-02-23 15:34:54 +11:00
parent 4623c248db
commit 3fc25fcfb2
2 changed files with 3 additions and 3 deletions

View file

@ -114,7 +114,7 @@ impl Default for Joypad {
fn default() -> Self { fn default() -> Self {
Self { Self {
sel_action: true, sel_action: true,
sel_direction: false, sel_direction: true,
down: false, down: false,
up: false, up: false,
left: false, left: false,

View file

@ -25,7 +25,7 @@ impl Default for SerialControl {
Self { Self {
transfer_in_progress: false, transfer_in_progress: false,
clock_speed: ClockSpeed::Normal, clock_speed: ClockSpeed::Normal,
clock_source: ClockSource::Internal, clock_source: ClockSource::External,
} }
} }
} }
@ -103,7 +103,7 @@ impl Serial {
impl Default for Serial { impl Default for Serial {
fn default() -> Self { fn default() -> Self {
Self { Self {
byte: 0xFF, byte: 0,
output_byte: 0, output_byte: 0,
bits_remaining: 7, bits_remaining: 7,
control: SerialControl::default(), control: SerialControl::default(),