Virtu: enable apple white and black keys
This commit is contained in:
parent
6621827b8f
commit
6f7a26e803
|
@ -115,8 +115,8 @@ namespace BizHawk.Emulation.Cores.Computers.AppleII
|
|||
}
|
||||
|
||||
private static readonly List<string> RealButtons = new List<string>(Keyboard.GetKeyNames()
|
||||
.Where(k => k != "White Apple") // Hack because these buttons aren't wired up yet
|
||||
.Where(k => k != "Black Apple")
|
||||
//.Where(k => k != "White Apple") // Hack because these buttons aren't wired up yet
|
||||
//.Where(k => k != "Black Apple")
|
||||
.Where(k => k != "Reset"));
|
||||
|
||||
private static readonly List<string> ExtraButtons = new List<string>
|
||||
|
|
21
BizHawk.sln
21
BizHawk.sln
|
@ -1,6 +1,6 @@
|
|||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 14
|
||||
VisualStudioVersion = 14.0.25420.1
|
||||
# Visual Studio 15
|
||||
VisualStudioVersion = 15.0.28307.136
|
||||
MinimumVisualStudioVersion = 12.0.31101.0
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Version", "Version\Version.csproj", "{0CE8B337-08E3-4602-BF10-C4D4C75D2F13}"
|
||||
EndProject
|
||||
|
@ -59,6 +59,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BizHawk.Client.MultiHawk",
|
|||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BizHawk.Client.ApiHawk", "BizHawk.Client.ApiHawk\BizHawk.Client.ApiHawk.csproj", "{8E2F11F2-3955-4382-8C3A-CEBA1276CAEA}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Virtu", "ExternalCoreProjects\Virtu\Virtu.csproj", "{8E522778-7A2C-4364-BDCE-0BA5623828E1}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
|
@ -245,6 +247,18 @@ Global
|
|||
{8E2F11F2-3955-4382-8C3A-CEBA1276CAEA}.Release|x64.Build.0 = Release|Any CPU
|
||||
{8E2F11F2-3955-4382-8C3A-CEBA1276CAEA}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{8E2F11F2-3955-4382-8C3A-CEBA1276CAEA}.Release|x86.Build.0 = Release|Any CPU
|
||||
{8E522778-7A2C-4364-BDCE-0BA5623828E1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{8E522778-7A2C-4364-BDCE-0BA5623828E1}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{8E522778-7A2C-4364-BDCE-0BA5623828E1}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{8E522778-7A2C-4364-BDCE-0BA5623828E1}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{8E522778-7A2C-4364-BDCE-0BA5623828E1}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{8E522778-7A2C-4364-BDCE-0BA5623828E1}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{8E522778-7A2C-4364-BDCE-0BA5623828E1}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{8E522778-7A2C-4364-BDCE-0BA5623828E1}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{8E522778-7A2C-4364-BDCE-0BA5623828E1}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{8E522778-7A2C-4364-BDCE-0BA5623828E1}.Release|x64.Build.0 = Release|Any CPU
|
||||
{8E522778-7A2C-4364-BDCE-0BA5623828E1}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{8E522778-7A2C-4364-BDCE-0BA5623828E1}.Release|x86.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
@ -264,6 +278,9 @@ Global
|
|||
{B95649F5-A0AE-41EB-B62B-578A2AFF5E18} = {B51F1139-3D2C-41BE-A762-EF1F9B41EACA}
|
||||
{8E2F11F2-3955-4382-8C3A-CEBA1276CAEA} = {B51F1139-3D2C-41BE-A762-EF1F9B41EACA}
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {9B9E4316-9185-412E-B951-A63355ACA956}
|
||||
EndGlobalSection
|
||||
GlobalSection(MonoDevelopProperties) = preSolution
|
||||
StartupItem = BizHawk.Client.EmuHawk\BizHawk.Client.EmuHawk.csproj
|
||||
EndGlobalSection
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -9,8 +9,8 @@ namespace Jellyfish.Virtu
|
|||
public sealed class GamePort : MachineComponent
|
||||
{
|
||||
// TODO: ressurect this
|
||||
public bool ReadButton0() { return false; }
|
||||
public bool ReadButton1() { return false; }
|
||||
public bool ReadButton0() { return Keyboard.WhiteAppleDown; }
|
||||
public bool ReadButton1() { return Keyboard.BlackAppleDown; }
|
||||
public bool ReadButton2() { return false; }
|
||||
|
||||
public bool Paddle0Strobe { get { return false; } }
|
||||
|
|
|
@ -264,6 +264,9 @@ namespace Jellyfish.Virtu
|
|||
{
|
||||
}
|
||||
|
||||
public static bool WhiteAppleDown;
|
||||
public static bool BlackAppleDown;
|
||||
|
||||
/// <summary>
|
||||
/// Call this at 60hz with all of the currently pressed keys
|
||||
/// </summary>
|
||||
|
@ -272,8 +275,15 @@ namespace Jellyfish.Virtu
|
|||
{
|
||||
Keys keys = FromStrings(keynames);
|
||||
|
||||
if (keys.HasFlag(Keys.WhiteApple)) { } // TODO: set GAME1
|
||||
if (keys.HasFlag(Keys.BlackApple)) { } // TODO: set GAME2
|
||||
if (keys.HasFlag(Keys.WhiteApple))
|
||||
WhiteAppleDown = true;
|
||||
else
|
||||
WhiteAppleDown = false;
|
||||
|
||||
if (keys.HasFlag(Keys.BlackApple))
|
||||
BlackAppleDown = true;
|
||||
else
|
||||
BlackAppleDown = false;
|
||||
|
||||
if (keys.HasFlag(Keys.Reset) && keys.HasFlag(Keys.Control)) { } // TODO: reset console
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>copy /y $(TargetDir)$(TargetFileName) $(ProjectDir)..\..\references\$(TargetFileName)</PostBuildEvent>
|
||||
<PostBuildEvent>copy /y "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\references\$(TargetFileName)"</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue