AppleII - State keyboard, fix up csproj
This commit is contained in:
parent
1c504bfe83
commit
4df256cd6b
|
@ -322,6 +322,15 @@ namespace Jellyfish.Virtu
|
||||||
Strobe = false;
|
Strobe = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void Sync(IComponentSerializer ser)
|
||||||
|
{
|
||||||
|
ser.Sync("Latch", ref _latch);
|
||||||
|
ser.Sync("Strobe", ref _strobe);
|
||||||
|
ser.Sync("CapsActive", ref _capsActive);
|
||||||
|
ser.Sync(nameof(_currentCapsLockState), ref _currentCapsLockState);
|
||||||
|
ser.Sync(nameof(_framesToRepeat), ref _framesToRepeat);
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// true if any of the 56 basic keys are pressed
|
/// true if any of the 56 basic keys are pressed
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -330,14 +339,31 @@ namespace Jellyfish.Virtu
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// the currently latched key; 7 bits.
|
/// the currently latched key; 7 bits.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int Latch { get; private set; }
|
public int Latch
|
||||||
public bool Strobe { get; private set; }
|
{
|
||||||
|
get => _latch;
|
||||||
|
private set => _latch = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool Strobe
|
||||||
|
{
|
||||||
|
get => _strobe;
|
||||||
|
private set => _strobe = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
private int _latch;
|
||||||
|
private bool _strobe;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// true if caps lock is active
|
/// true if caps lock is active
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private bool CapsActive { get; set; }
|
private bool CapsActive
|
||||||
|
{
|
||||||
|
get => _capsActive;
|
||||||
|
set => _capsActive = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
private bool _capsActive;
|
||||||
private bool _currentCapsLockState;
|
private bool _currentCapsLockState;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<Import Project="$(ProjectDir)../../Common.props" />
|
<Import Project="$(ProjectDir)../../Common.props" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>netstandard2.0;netcoreapp3.1</TargetFrameworks>
|
<TargetFrameworks>net4.8</TargetFrameworks>
|
||||||
|
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
||||||
|
<Nullable>disable</Nullable>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="Microsoft.CSharp" />
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
|
Binary file not shown.
|
@ -56,6 +56,10 @@ namespace BizHawk.Emulation.Cores.Computers.AppleII
|
||||||
_machine.Memory.Sync(ser);
|
_machine.Memory.Sync(ser);
|
||||||
ser.EndSection();
|
ser.EndSection();
|
||||||
|
|
||||||
|
ser.BeginSection("Keyboard");
|
||||||
|
_machine.Memory.Keyboard.Sync(ser);
|
||||||
|
ser.EndSection();
|
||||||
|
|
||||||
ser.BeginSection("NoSlotClock");
|
ser.BeginSection("NoSlotClock");
|
||||||
_machine.NoSlotClock.Sync(ser);
|
_machine.NoSlotClock.Sync(ser);
|
||||||
ser.EndSection();
|
ser.EndSection();
|
||||||
|
|
Loading…
Reference in New Issue